2

Here is the app https://play.google.com/store/apps/details?id=product.clicklabs.jugnoo&hl=en which is able to turn on GPS automatically. How can I do the same?

Vatish Sharma
  • 1,536
  • 3
  • 16
  • 35

2 Answers2

1

"You can't do this for security/privacy reasons, you have to forward to location preferences screen and let the user enable/disable it."

But maybe the link below can help you out.

Check this out : How can I enable or disable the GPS programmatically on Android?

Hope this will help you.

Community
  • 1
  • 1
Jenisha Makadiya
  • 832
  • 5
  • 17
0

Here is Official Google's Settings API https://developers.google.com/android/reference/com/google/android/gms/location/SettingsApi through which you can enable GPS on single tab like jugnoo app will do.

Vatish Sharma
  • 1,536
  • 3
  • 16
  • 35