On Thu, Mar 17, 2011 at 8:56 AM, mboehmer <[email protected]> wrote:
> I need a thread that never sleeps.

Threads don't sleep unless you call Thread.sleep() or SystemClock.sleep().

Threads may block on certain things (e.g., waiting for data on a socket).

And the device will fall asleep after some amount of user inactivity.

> It looks like that normal threads
> sometimes are paused by the system and are not active all the time.

See above.

> What is the
> best way to execute some lines of code every 200 milliseconds?

What are the "some lines of code" doing and where are they running?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

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

Reply via email to