Okay.. I am doing something similar to the below:
private void onCreate() {
final ProgressDialog dialog = ProgressDialog.show(this, "Please wait..", "Doing stuff..", true);
Thread t = new Thread() {
public void run() {
//do some serious stuff...
dialog.dismiss();
}
};
t.start();
t.join();
stepTwo();
}
However, what I am finding is that my progress dialog never even shows up. My App stalls for a moment so I know it is chugging along inside of thread t, but why doesnt my dialog appear?
IF I remove the line:
t.join();
Then what I find happens is that the progress dialog does show up, but my app starts stepTwo(); before what happens in the thread is complete..
Any ideas?