开发者

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

开发者 https://www.devze.com 2023-01-19 04:52 出处:网络
How can we turn on/off GPS programatically without going on setting screen in android?开发者_如何学GoYou cannot do this.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消