If you don't hold a wake lock, you can't count on the CPU running. On Fri, Nov 20, 2009 at 12:01 PM, Derek <[email protected]> wrote:
> Hi all, > > Our application is running a service periodically through AlarmManager > and PendingIntent. Each time the service runs, it sets a new > PendingItent for next run. I works fine but sometimes the service > stops for no reason. > - Could it come from PowerManager? > - Could the CPU goes off before the end of the service? > - Should we setup a WakeLock within the service to prevent from CPU to > go off? > > Thanks for any advice. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

