如何打开Android上GPS [英] How to turn on the GPS on Android

查看:132
本文介绍了如何打开Android上GPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序,需要激活GPS。

I am developing an android app which needs to activate the GPS.

我在很多论坛上阅读了很多话题,我已经找到了答案是:

I read a lot of topics in a lot of forums and the answer I've found is:

这是不可能的。

不过......在地狱犬的APP打开我的GPS ...所以... ...这是可能的!

But... the "Cerberus" APP turns my GPS on... so... it's possible!

谁能帮助我?

推荐答案

没有it't是不可能的,不适当的。你不能只是管理用户手机没有他的权威。

No it't impossible, and inappropriate. You can't just manage the users phone without his authority.

从Play商店:

地狱犬自动开启GPS,如果它是关闭的,当你试图定位设备的(仅在Android< 2.3.3),并可以防止未经授权的卸载 - 在应用程序的详细信息配置。

"Cerberus automatically enables GPS if it is off when you try to localize your device (only on Android < 2.3.3) and you can protect it from unauthorized uninstalling - more info in the app configuration."

您可以做这样的事情:

startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));

这篇关于如何打开Android上GPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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