I'd like to stop/start my Android service based on the ACTION_SCREEN_OFF & 
ACTION_SCREEN_ON intents.

ACTION_SCREEN_OFF - stop my service to conserve battery life. 
ACTION_SCREEN_ON - start the service back up

I understand that I cannot register for ACTION_SCREEN_OFF & 
ACTION_SCREEN_ON in the Manifest and have successfully created a Broadcast 
Receiver in my service to capture the ACTION_SCREEN_OFF & ACTION_SCREEN_ON.

But, since I cannot register for the intents in the manifest, when I stop 
my service on ACTION_SCREEN_OFF...how can I possibly start it back up when 
the screen comes back on ?

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