Android forever in background -


i write application android. app should write file every change on battery percentage, voltage, remaining ram, current date , time, etc. app in background , when switch out app, os kill application. issue. somewhere have read possibility broadcastreciever , have 1 set react on battery change, doesn't solves problem. ideas?

you need use foreground service, os not kill it, see running service in foreground


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -