I need to work Location API for android where first the data is to be stored on Local Sqlite datbase in android itself each 15 minutes and then send it to a server, so that data can be tracked offline too.
Any suggestions, code or help is really appreciated !
You, can simply create a background service then implements a location listener. In that location listener, you can set the time interval in the
requestLocationUpdatemethod to ping the GPS at particular time intervals. or you can use timertask to send gps at particular intervalsHere is a location manager instance:
You can send that location to the server from the service. You can also send notifications to launch the app.