04-23-2012 06:30 AM
In my app i want to do a task, when any user clicks the submit button, app wants to the current GPS Co-Ordinates for the handset and then call the web service URL every 60 Seconds. Is it possible to get the gps and call web service concurrently for every 60 seconds. Please suggest.
04-23-2012 06:37 AM - edited 04-23-2012 06:38 AM
If you have eclipse environment, Import the GPSDemo.
If you read through the code, it obtains the GPS and posts it to screen.
All you would have to do is instead, send it to your webservice.
One of the lines that creates the gps listener is:
_locationProvider.setLocationListener(new LocationListenerImpl(), _interval, -1, -1);
Where _interval is your desired interval aka 60 in your case.