[android-developers] Re: Thread Question

2008-11-07 Thread Guillaume Perrot
onCreate: show the progress dialog in the main thread. spawn your thread when the thread completes, call dismiss() on the progress dialog from the Thread using an Handler: Handler mHandler = new Handler(); in the main thread mHandler.post(new Runnable() { @Override public void run() {

[android-developers] Re: Thread Question

2008-11-06 Thread Guillaume Perrot
You should not use the following in your case but there is a simple way to wait for a thread to complete, it's the Thread.join() function. This should be called only in a background thread which need to synchronize with another background thread for some reason. You should (i'd say must) never

[android-developers] Re: Thread Question

2008-11-05 Thread joshbeck
I'm fairly new at this and just to the point where threading makes sense. So, my my main process is also considered a thread? True --- False I write a simple HelloWorld.java program. This program has 1 thread, the main flow of execution. ? Thanks, Josh On Nov 5, 7:26 pm, hackbod [EMAIL

[android-developers] Re: Thread Question

2008-11-05 Thread hackbod
http://code.google.com/android/intro/appmodel.html The last section is on threads, though it's strongly recommended you read the whole thing. On Nov 5, 9:58 pm, joshbeck [EMAIL PROTECTED] wrote: I'm fairly new at this and just to the point where threading makes sense. So, my my main process