[android-developers] Re: Context.startService - The service does not stay running...

2009-02-22 Thread Rahim Sonawalla
I just started working with Android recently, so I don't know for sure, but I think this might be because the timer used by Handlers is only incremented when the CPU is running. When your phone becomes inactive, the Android OS might shut down the CPU (this was mentioned in one of the Google I/0

[android-developers] Re: Context.startService - The service does not stay running...

2009-02-07 Thread Jon Colverson
Look into the PowerManager: http://code.google.com/android/reference/android/os/PowerManager.html -- Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email