Yeah I know that. My problem is that I am not sure about how battery draining this could be. Doing something everytime the screen goes off. (ok just for a few ms but well)
Thank you for your answer. On 18 Dez., 20:53, "Dianne Hackborn" <[email protected]> wrote: > There is a broadcast sent when the screen goes off. > > On Thu, Dec 18, 2008 at 3:07 AM, code_android_festival_way < > > > > [email protected]> wrote: > > > Hello. > > > I'm thinking about implementing an Alarm which starts up a little > > CheckupService which checks if another WorkService (on which I rely > > on) is still available or not. This checkup consists of one sent > > broadcast and sometimes restarting the WorkService. (perhaps a few ms > > of work) > > > What is the right way to do this as less battery draining as possible? > > At the moment I have set the Alarm to check every 10 minutes. But in > > my case it would be more useful to check everytime the screen goes > > off. Could someone please tell me how battery draining this would be? > > > I'm looking forward reading your answers. Thank you for your help. > > > PS: > > I know that keeping a service "always on" is not the right way to > > react on something. But incoming calls do not send a Broadcast so I > > have to rely on a background service monitoring the telephony state > > and can not use a BroadcastReceiver. (and the users know about that > > fact and accept it for the added feature of LED notifications on > > missed calls :-) ) > > -- > 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. 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 -~----------~----~----~----~------~----~------~--~---

