有没有办法以编程方式启用GPS在Android 2.1及放大器;以上? [英] Is there way to programmatically enable GPS on Android 2.1 & above?

查看:101
本文介绍了有没有办法以编程方式启用GPS在Android 2.1及放大器;以上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到,全球定位系统不能以编程方式启用<不同的岗位href="http://stackoverflow.com/questions/843675/how-do-i-find-out-if-the-gps-of-an-android-device-is-enabled">How我发现,如果一个Android设备的GPS启用

I have been seeing different posts that GPS cannot be enabled programmatically How do I find out if the GPS of an Android device is enabled

不过应用程序使GPS时被禁用。任何人都可以请帮我。

But this app enables the GPS when it is disabled. Can anyone please help me out.

谢谢, Prateek

Thanks, Prateek

推荐答案

,我建议你不要这样做。有很多的影响,为什么文档说。如果有人能够做到这一点(编程启用GPS),这意味着他/她做的事情是无证的。

If the documentation said that it can't be set programmatically, I suggest you not to do so. There are many impacts why the documentation said that. And if someone was able to do that (enabling the GPS programmatically), it means he/she doing something that was undocumented.

激活GPS需要用户的许可。如果您的应用程序能够启动GPS,并且不通知用户(此外,要求用户的权限),则可能违反隐私政策。

Activating GPS requires user's permission. If your application was able to activate the GPS without notifying the users (furthermore, asking for the user's permission), you might violate the privacy policy.

这篇关于有没有办法以编程方式启用GPS在Android 2.1及放大器;以上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆