有谁知道在Android addProximityAlert的LocationManager是否是电池密集 [英] Does anyone know whether the Android addProximityAlert on the LocationManager is battery intensive

查看:516
本文介绍了有谁知道在Android addProximityAlert的LocationManager是否是电池密集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是基本上要与周围500米半径没有时间到期增加约20,有时80接近警报。 只是想知道是否做这会吸取电池真正的快?也将其通过减少半径有什么区别?

I just basically want to add about 20 and sometimes 80 Proximity Alerts with no time expiration with a radius of around 500 meters. Just wondering whether by doing this will suck up the battery real quick? also would it make any difference by reducing the radius?

推荐答案

这肯定会吃你的电池真正的快。你永远不希望被设置超过一对夫妇在任何情况下,接近警报,用例您所描述是不是真的在接近警报照顾。

This will definitely eat your battery real quick. You never want to be setting more than a couple of proximity alerts in any case, the use-case you describe isn't really catered for in Proximity Alerts.

接近警报应要求GPS和网络之间进行切换,但在我的经验,他们往往坚持GPS时,它是可用的,并且你的电池将因此受到影响。

Proximity Alerts should switch between GPS and Network as required, but in my experience they tend to stick to GPS whenever it's available, and your battery will suffer as a result.

有一个更好的替代方法是使用一个报警和服务对你的一套20到80个地点检查所需的当前位置。这将让您管理在一个地方,你想使用(GPS或小区ID)LBS,以及检查的频率,所有。这样做,这样可以让您管理您的电池使用更有效。

A better alternative would be to use an Alarm and a Service to check your current location against your set of 20 to 80 locations as required. This will let you manage the LBS you want to use (GPS or Cell ID), as well as the frequency of checks, all in one place. Doing it this way will let you manage your battery use much more effectively.

这篇关于有谁知道在Android addProximityAlert的LocationManager是否是电池密集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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