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
-~----------~----~----~----~------~----~------~--~---

Reply via email to