sam_k
sam_k

Reputation: 6023

How Can I Stop GPS Tracking When I Press a Button in Android

I want to stop GPS tracking when a user clicks on a specific button. How can I achieve this.

Upvotes: 0

Views: 670

Answers (2)

chiranjib
chiranjib

Reputation: 5308

The following link can be useful to you

Upvotes: 1

Aman Aalam
Aman Aalam

Reputation: 11251

in the onPause() method, call the method removeUpdates() on that LocationListener

Upvotes: 0

Related Questions