3

In my android app, the user is able to turn off the GPS.

Because I need sometimes of the GPS and I want also ask the user to turn on the GPS again.

But the user is able to mark for not appears more this warning.

1 Answers1

1

Use LocationListener which has the method onProviderDisabled. This method gets called everytime the user turns off the GPS provided you have set the Location Provider to be GPS.

PravinCG
  • 7,688
  • 3
  • 30
  • 55