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

command line - Use qwinsta in PowerShell ISE -

ruby - Net::HTTP extremely slow responses for HTTPS requests -

java - Incorrect order of records in M-M relationship in hibernate -