我正在尝试编写一个Adroid应用程序,它应该在后台运行,并在用户接近数据库中给定的位置时通知用户。我应该在扩展的IntentService类中通过requestLocationUpdates来做吗?
什么是最好的方法,使其尽可能少的电池消耗?
发布于 2012-07-16 21:58:56
Reto Meier在这个主题上写了大量的文章:http://android-developers.blogspot.in/2011/06/deep-dive-into-location.html
在安卓开发者网站上也有一个关于Optimizing Battery Life的部分:http://developer.android.com/training/monitoring-device-state/index.html
https://stackoverflow.com/questions/11505770
复制相似问题