android - need better explanation of services with explicid intents -


There are some intents that I am looking to use and I'm sure they are not registered in manifest such as manifest_screen_off May be.

So when I start the service:

  context.startService (new intent (reference, service class));   

Then on, a broadcast receiver registers like this:

  register receiver (screen receiver, new intent filter (int. Action_sirean_on));   

and start my onStartCommant return

Should the receiver be removed every time the screen is turned off? But this dosent I tried something like this with different receivers- action_battery_changed and they do not work

"

Comments