The solution proposed by Mark Murphy works well.

Create a timer with the interval you want and call then
getLastKnownLocation method to obtain the gps values.

For this you will need the requestLocationUpdates and get the list of
providers from the LocationManager.
Create a loop inside the timer (you may want the list of all available
providers) and call inside the loop the method getLastKnownLocation.
You get a Location object, which you use to get the latitude,
longitude, speed and time.

Hope this helps

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to