broadcastreceiver - I want to write an application which is working even when its close to show notification for battery low ,should i use Broadcast receiver or Service? -


i want write application working when close show notification battery low ,should use broadcast receiver or service ?

i have written codes doesn't work. can me?

  • you should use service, has lifecycle that's independent of component started , service can run in background indefinitely, if component started destroyed. such, service should stop when job done calling stopself(), or component can stop calling stopservice().

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -