I'm developing GPS tracking app for Android. The idea is to get GPS coordinates and to put them into MySQL database server. Later they will be viewed on GPS tracking web page. I know about "Activity module" and "Service module", everything works when mobile phone is not sleeping.
It there a way to keep application running while phone is in sleeping mode?
You can force the phone from going to sleep with PhoneWakeState: Basic4android - Phone
Once the device is sleeping you will not be able to run your application.
Another possible solution is to periodically start a service with StartServiceAt, acquire the wake lock, find the GPS fix and release the lock.
You can force the phone from going to sleep with PhoneWakeState: Basic4android - Phone
Once the device is sleeping you will not be able to run your application.
Another possible solution is to periodically start a service with StartServiceAt, acquire the wake lock, find the GPS fix and release the lock.