yayaa / LocationManager

Simplify getting user's location for Android
807 stars 187 forks source link

How can i stop location listener after i getting my location at first time. #4

Closed alphaDroid89 closed 8 years ago

alphaDroid89 commented 8 years ago

Hi @yayaa, thanks for this library, here i need to get user current location only once. Can you assist me to achieve this.

yayaa commented 8 years ago

Please do not open your questions as issue! you may send me an email, this is not the way.

Still, library is already design to get location only once. If you want to keep getting updates you need to specify keepTracking(true) otherwise it will removeUpdates once it gets location.

Check configuration file for more information.