Re: [android-developers] Poll Screen On/Off state

2009-11-03 Thread Mark Murphy
gudujarlson wrote: I have an app that runs in the background indefinitely provided there is work to be done. I want the app to go to sleep if there is no work to be done and the user is idle. What does the user being idle have to do with anything here? If there is no work to be done, there is

[android-developers] Poll Screen On/Off state

2009-11-03 Thread gudujarlson
I have an app that runs in the background indefinitely provided there is work to be done. I want the app to go to sleep if there is no work to be done and the user is idle. The second part has me stumped. On Windows Mobile I was able to poll the power state to determine user idleness. On