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.
Hope that helps -
John Batka
On Feb 25, 5:16 am, manoj <[email protected]> wrote:
> Hi friends,
>
> In my application I want onLocationChanged() to be called frequently.
>
> Is it possible?
>
> Actually, I should get the accurate accuracy of the location. How to
> do it?
>
> Can any one please suggest me?
>
> Thanks,
> Manoj.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---