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 :-) )


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to