0

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

Anthony
  • 11,737
  • 9
  • 66
  • 101
sam_k
  • 5,887
  • 13
  • 73
  • 108

2 Answers2

1

The following link can be useful to you

Community
  • 1
  • 1
chiranjib
  • 5,250
  • 7
  • 51
  • 82
0

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

Aman Alam
  • 11,131
  • 7
  • 42
  • 81