开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜