I was wondering if i could create an android application which procures the mobile’s location for every 150 meteres and update my java web-server.
All i want for the android app to do is to update the details for every 150 mts and thats it and i’m not expecting any response or acknowledgement from we server.
Can this be done by communicating to a jsp or a servlert or any other technique.
What’s the best approach for getting the location details even in moving vehicles and updating the details to my web server which would maintain the details in a database.
Can anyone provide any samples and suggest the best methodology to do the same in the most time efficient manner.
The best approach would be register a service, define a custom location listener. In the implementation override the onLocationChanged() and you can get the location (lat, long) tuple and you could probably update the server with a GET/POST request. Take a look at the reference code.
Feel free to ask if you have any doubt. You can adjust the frequency of update requests.
Thanks