Saturday, October 1, 2011

Re: [android-developers] suspend a Thread

Unrelated to onPause, that's just for UI threads. (Well,
specifically, Activity and friends (subclasses))

Do a Thread.sleep()?

http://stackoverflow.com/questions/1520887/how-to-pause-sleep-thread-or-process-in-android

Handlers, and Timers seem to be good (I'd recommend Handler.)

Kris

On Sat, Oct 1, 2011 at 11:42 PM, bob <bob@coolgroups.com> wrote:
> How do you suspend a Thread on Android?  I have a background thread,
> and I need to write the onPause method.
>
> --
> 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
>

--
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

No comments:

Post a Comment