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?开发者_如何学Go
You cannot do this.
This is important for privacy reasons.
How to programmatically enable GPS in Android Cupcake
// Remove the listener you previously added
locationManager.removeUpdates(locationListener);
got from http://developer.android.com/guide/topics/location/obtaining-user-location.html
精彩评论