1

Run upload process in background even when phone is asleep

view story
linux-howto

http://stackoverflow.com – So I have developed an android application that determines the user's location every 5 seconds using the fused location (LocationClient), and send this data to my server. This whole process repeats itself every 5 seconds when the app is running. I am uploading the data in background using AsyncTask class. The Problem: Data uploading stops when user closes the app or when the phone is put to sleep. What I want: I want the app to continuously send location data to my server even when the user closes the app or when the phone is asleep. This process should run on a seperate thread as I don't (HowTos)