Depending on a condition, you can return from the run method. That will end the thread. Have a boolean value which you should check in your loop.
-Kumar Bibek http://techdroid.kbeanie.com On Sep 28, 9:33 pm, Stuart <[email protected]> wrote: > 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" 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

