系统中打开GPS和关闭GPS
来源:互联网 发布:小小食杂铺 知乎 编辑:程序博客网 时间:2024/05/22 23:59
Settings.Secure.putInt(getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_HIGH_ACCURACY);//打开GPS
Settings.Secure.putInt(getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);//关闭GPS
Settings.Secure.putInt(getContentResolver(), Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);//关闭GPS
1 0
- 系统中打开GPS和关闭GPS
- Android中如何打开或关闭GPS
- android中gps的打开关闭
- Android 如何打开和关闭GPS设备
- android 打开或关闭GPS
- Android打开或者关闭GPS
- GPS开关判断,强制打开关闭GPS(不用系统权限)
- Android中如何通过程序打开或关闭GPS
- Android中如何通过程序打开或关闭GPS
- Android中如何通过程序打开或关闭GPS
- android 5.1 打开与关闭GPS
- 打开GPS
- Android中如何监听GPS开启和关闭
- Android中如何监听GPS开启和关闭
- Android在代码中打开Wifi、移动网络和GPS
- Android在代码中打开Wifi、移动网络和GPS
- Android在代码中打开Wifi、移动网络和GPS
- Android在代码中打开Wifi、移动网络和GPS
- mingw(gcc)编译openjpeg
- ViewPager的使用2
- iOS 自定义TabBarController
- 关于 UIWebView 加载后为空白页
- 深度学习(五)caffe环境搭建
- 系统中打开GPS和关闭GPS
- 用回调解决angular service 异步传输数据到controller中
- opencv编程笔记
- iOS导航栏的translucent属性
- webx返回json类型数据
- 21.Merge Two Sorted Lists
- 深度学习(六)caffe入门学习
- MFC使用WM_HOTKEY添加快捷键
- 实现图片Bitmap简单编辑的三种方式