john wrote:
> You need to establish a LocationListener -
>
> Example:
>
> lm = (LocationManager) trackingService.this.getSystemService
> (Context.LOCATION_SERVICE);
> ll = new MyLocationListener();
> lm.removeUpdates(ll);
> lm.requestLocationUpdates("gps", 0, 0, ll);
>
> The two zeros determine how often to get onlocationchanged. The first
> one is how often in seconds to call it, the second is how far you must
> travel in meters before it gets called.
To clarify: the first zero is how often in milliseconds to call it
(minimum), not seconds.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---