android - My app stops processing when it's in background for a while -


i trying start timer @ regular interval (through handler) , and write gps location file upon expiry. when app in background while seems getting killed or not writing anymore.

why? there way this?

thank k you

if want app run in background, need service.

alternatively, if need small tasks every once in while, can use broadcastreceiver.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -