How Can We Turn On/off Gps Programatically Without Going On Setting Screen In Android?
How can we turn on/off GPS programatically without going on setting screen in android?
Solution 1:
You cannot do this.
This is important for privacy reasons.
How to programmatically enable GPS in Android Cupcake
Solution 2:
// Remove the listener you previously added
locationManager.removeUpdates(locationListener);
got from http://developer.android.com/guide/topics/location/obtaining-user-location.html
Post a Comment for "How Can We Turn On/off Gps Programatically Without Going On Setting Screen In Android?"