I had built an Android app which tracks vehicle location (Android device).My app updates the locations and speed to the server @ every t seconds, using mobile data.App also monitors the vehicle speed which is under the speed limit or not.Definitely my app will not be able to contact server if the data connectivity is lost. At this point which is the best practice to store the location data in the device.
My plan is to store the datas in an xml file and update it to server later.Since the app wont update each and every locations but only after 19 secs or greater, I think this is the simplest option.please guide me in right path, if im wrong. And also I dont know how to update the bunch of data from xml to server.
My current location saving strategy is: Calling a php page(asyncTask) on server by passing location and other relevent datas. But how will I implement if I have a bunch of datas!