I'm trying to do something quite simple (I think) but as usual am running into problem.
All I want to do is start a thread which goes off to get some info from the web. Whilst it's doing this I want to display a ProgressDialog. Once it has finished I then want my program to continue.
So far in the onCreate Method I have:
Obviously what happens at the moment is the thread starts and displays the ProgressDialog but the Log.D command is run as soon as the thread starts.
I have tried using thread.jon() which makes it wait but then the ProgressDialog does not get shown?
What is the best way of getting my program to wait until the thread has finished before continuing?