Manually abort GPS updating in Android

Posted by poeschlorn on Stack Overflow See other posts from Stack Overflow or by poeschlorn
Published on 2010-05-26T07:29:12Z Indexed on 2010/05/26 8:31 UTC
Read the original article Hit count: 279

Filed under:
|
|

Hey Guys,

I receive updates from my GPS in this way:

lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, 0, locationListener);

In my onLocationChanged(Location loc)-method I want now to abort updating GPS data by specific criteria...

So how can I undo/disable the requestLocationUpdates(...) ?

Nice greetings, poeschlorn

© Stack Overflow or respective owner

Related posts about android

Related posts about gps