In the Android app that I am working on.
- I want to take the user location and send it to the server on a post request every 5 seconds; Even when the app is running in the background
- I want to send all geolocation info included bearing.
- I need a method to call to start the sending job and a method to stop the sending job.
- The plan is to only send the new data as the old ones have already been sent. To avoid overloading data all at once to the server.
you must be writing service and for getting location you use from smartlocation library
}