How can we turn on/off GPS programatically without going on setting screen in android?
Asked
Active
Viewed 3,814 times
2 Answers
1
You cannot do this.
This is important for privacy reasons.
1
// Remove the listener you previously added
locationManager.removeUpdates(locationListener);
got from http://developer.android.com/guide/topics/location/obtaining-user-location.html

Arun Chettoor
- 1,021
- 1
- 12
- 17
-
+1 That's the way to go, plus it's suggested by the official android documentation. – AgentKnopf Sep 06 '12 at 10:56