How a can delay a method without blocking the UI thread? Say...
//this method is in the UI thread
public void doSomething() {
myAsyncTask.execute() //its gona take like 1 or 2 sec, and keeps updating views in UI
... //i need to wait here for myAsyncTask finishes before the method finishes
}