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 PROTECTED]> wrote:
> If the thread takes a while to complete, your main application thread
> probably shouldn't wait for it to complete...  otherwise, what's the
> point of putting that work in the thread, if you're just going to
> block on it at some point.
>
> Instead, consider using a Handler to post a message back to the main
> thread when the background thread has finished its work.
>
> On Nov 5, 3:54 pm, joshbeck <[EMAIL PROTECTED]> wrote:
>
> > I have a function that utilizes a thread.
>
> > A variable the is needed for the program is populated after the thread
> > call is made.
>
> > The thread takes a while to complete.
>
> > How can I make the program wait for a thread to complete before moving
> > on?
>
> > Thanks,
> > Josh Beck
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to