I created a game which also requires a gameloop thread. I communicate with the thread simply by using getters and setters. But that requires that the other threads has a the new thread as a member instance.
I use the AsyncTask for loading levels, not for the game loop. On 31 mei, 06:59, Gavin <fjm...@gmail.com> wrote: > Hi, > > I have some questions about threads. > Threre is a main thread A, and then it creats a sub-thread B. I > want to know: > 1) If main thread A exits or crashs, thread B can continue > running? > 2) if the upper question's anwser is yes, is there a method that A > can notify B before A exits? How can B get A's state? > > thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---