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
Post a Comment