How do I turn off Location listener on Android?

mLocManager. removeUpdates(locationListenerObject); mLocManager = null; Call this inside your onLocationChange Method when lat and long has been captured by the listener. It might take some time for the onLocationChange method to be called.

Sizin İçin Seçtik  What is the correct way to start a service in Android?

Leave a Reply

Your email address will not be published. Required fields are marked *