Reputation: 6023
I want to stop GPS tracking when a user clicks on a specific button. How can I achieve this.
Upvotes: 0
Views: 670
Reputation: 5308
The following link can be useful to you
Upvotes: 1
Reputation: 11251
in the onPause() method, call the method removeUpdates() on that LocationListener
onPause()
removeUpdates()
LocationListener