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 supposed to behave.
On Feb 7, 3:29 pm, Greg White <[email protected]> wrote: > On Sat, Feb 7, 2009 at 11:50 AM, Brian <[email protected]> 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 has become inactive. > > I'm interested to hear what others say. My experience mirrors yours. I > believe the phone is going to sleep and freezing the service. > > What I did was to use the AlarmManager to wake the service to do its work. > While it was working, I used a wake lock to keep the phone from sleeping. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

