Android GPS 开启或关闭状态
有没有办法在没有任何许可的情况下检查Android GPS是否打开或关闭,只是我不需要切换它的状态。
谢谢
Is there any way to check if the Android GPS is on or off without any permission, just the state I don't need to toggle it.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
否。在 Android 上检查 GPS 状态需要
检查 GPS 状态的代码
No. Checking GPS Status on Android requires
The code to check the status of GPS
步骤 -
您也需要清单文件中的以下权限 -
编写代码
或者简单地您可以检查
连续运行您的服务以监视连接
steps -
You require following permission in Manifest file too -
write code
Or simply you can check
run your services continuous to monitor connection
如果您想检查 GPS 的状态,无论是打开还是关闭,那么这个解决方案将帮助您
If you want to check the condition of GPS that whether it is ON or OFF, then this solution will help you