[android-developers] Re: Please Help! Service seems to sleep when phone is inactive

2009-02-07 Thread clarkbriancarl
Wow, some great information here. Thanks for taking the time! On Feb 7, 6:38 pm, Christoph Studer wrote: > Android uses a very proactive power management approach. Basically, > the policy is to go to sleep if not told otherwise. > > The way to signal to the system that it should stay awake are

[android-developers] Re: Please Help! Service seems to sleep when phone is inactive

2009-02-07 Thread Christoph Studer
Android uses a very proactive power management approach. Basically, the policy is to go to sleep if not told otherwise. The way to signal to the system that it should stay awake are wakelocks. As soon as there's at least one app holding a wakelock, the system won't go to sleep and all the running

[android-developers] Re: Please Help! Service seems to sleep when phone is inactive

2009-02-07 Thread clarkbriancarl
Thanks for the reply. I've been reading and tweaking for over a week trying to figure this out. Thats a good idea to use the Alarm Manager. I think I will give that a try. I would still like to hear from a more experienced devloper or a google engineer if this is the way an Android service is supp

[android-developers] Re: Please Help! Service seems to sleep when phone is inactive

2009-02-07 Thread Greg White
On Sat, Feb 7, 2009 at 11:50 AM, Brian wrote: > While testing the service, I have come across something interesting. > > My problem is that the service appears to sleep or pause for a few > hours, run a short time, and then sleep for a few more hours, then run > a short time, etc when the phone h