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

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -