I am having trouble with the order of function callbacks in a game. I create and start a game thread in the onCreate() of my activity. In the onPause() of the activity, I pause the thread. And in surfaceDestroyed() I stop the thread entirely. I have tried several other configurations, but I always run into one of two scenarios: I either try to start a thread that already exists, or my activity resumes without restarting the game thread.
I'm wondering if there is a best practice or accepted way to start, pause, and resume the game thread. Has anyone else had a similar problem. How did you resolve it? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---