On Thu, Mar 17, 2011 at 7:56 AM, mboehmer <[email protected]> wrote:
> I need a thread that never sleeps. It looks like that normal threads > sometimes are paused by the system and are not active all the time. I have a > logging output in the main loop of a thread in the run() method. What is the > best way to execute some lines of code every 200 milliseconds? What are you actually trying to do? "I need a thread that never sleeps" is pretty much the opposite of "execute some lines of code every 200 milliseconds", which implies "sleeping" for at least 200 milliseconds. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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

