[android-developers] Ending a Thread Safely

2010-09-28 Thread Nam Ngo
Hi Stuart, Can you determine whether the life cycle of the thread is bound to which? The SurfaceView or the Activity, I think the common control should have a callback to let you know that its life cycle is come to an end (onDestroyed or onSurfaceDestroyed), you can try to join the Thread at that

Re: [android-developers] Ending a Thread Safely

2010-09-28 Thread Nam Ngo
Hi Stuart, Can you determine whether the life cycle of the thread is bound to which? The SurfaceView or the Activity, I think the common control should have a callback to let you know that its life cycle is come to an end (onDestroyed or onSurfaceDestroyed), you can try to join the Thread at that

[android-developers] Ending a Thread Safely

2010-09-28 Thread Stuart
I've found lots of great tutorial on starting a thread, however what's the best way to close a thread that's using a SurfaceView in a game loop and set a new view? Could you provide some sample code? -- You received this message because you are subscribed to the Google Groups "Android Developers"