0

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

Anthony
  • 12,177
  • 9
  • 69
  • 105
sam_k
  • 5,983
  • 14
  • 76
  • 110

2 Answers2

1

The following link can be useful to you

Community
  • 1
  • 1
chiranjib
  • 5,288
  • 8
  • 53
  • 82
0

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

Aman Alam
  • 11,231
  • 7
  • 46
  • 81