tags:

views:

77

answers:

2

How can we turn on/off GPS programatically without going on setting screen in android?

+1  A: 

You cannot do this.

This is important for privacy reasons.

http://stackoverflow.com/questions/1051649/how-to-programmatically-enable-gps-in-android-cupcake

Umesh
A: 

// Remove the listener you previously added

locationManager.removeUpdates(locationListener);

got from http://developer.android.com/guide/topics/location/obtaining-user-location.html

arun