Android的 - 一旦点击/关闭位置服务 [英] Android - Once click off/on location services

查看:110
本文介绍了Android的 - 一旦点击/关闭位置服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Android的范围内使用位置服务的一些应用程序,但在大多数情况下,我想保持这些三关,直到我需要他们:

使用无线网络
使用GPS卫星定位
定位和谷歌服务

我想设计,可以一按切换这三个应用程序。所以,我有有两个问题。


  1. 有没有办法做到这一点,或者是切换它们的唯一方法是通过使用:

android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS

然后做手工?和....


  1. 如果一些应用程序在使用过程中的访问位置和访问精确的位置信息,确实它甚至事,我这些切换关闭?他们仍然可以得到我的位置?

感谢您的输入。

扎克


解决方案

  

有没有办法做到这一点。


不通过任何现代版本的操作系统的Andr​​oid SDK中。


  

如果一些应用程序在使用过程中的访问位置和访问精确的位置信息,确实它甚至事,我这些切换关闭?他们仍然可以得到我的位置?


没有。这些位置提供被禁止的,因此是不能使用的,而他们仍然禁用。

I use a few apps that use the location services within Android, but for the most part I would like to keep these three off until I need them:

Use Wireless Networks Use GPS Satellites Location and Google Services

I would like to design an app that can one click toggle these three. So I have have two questions.

  1. Is there a way to do that, or is the only way to toggle them is by using:

android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS

And then doing it manually? And....

  1. If a few apps are using access course location and access fine location, does it even matter that I have these toggled off? Can they still get my location?

Thanks for the input.

Zach

解决方案

Is there a way to do that

Not via the Android SDK on any modern version of the operating system.

If a few apps are using access course location and access fine location, does it even matter that I have these toggled off? Can they still get my location?

No. Those location providers are disabled, and therefore are not available for use while they remain disabled.

这篇关于Android的 - 一旦点击/关闭位置服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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