Tuesday, September 28, 2010

[android-developers] Re: Ending a Thread Safely

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 <stuart.z...@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate