我正在尝试编写一个应在后台运行的 Adroid 应用程序,并在用户接近数据库中给定的位置时通知用户。我应该通过扩展 IntentService 类中的 requestLocationUpdates 来完成吗?
尽可能减少电池消耗的最佳方法是什么?
最佳答案
Reto Meier 就此主题撰写了大量文章:http://android-developers.blogspot.in/2011/06/deep-dive-into-location.html
在 Android 开发者网站上还有一个关于优化电池生命周期
的部分:http://developer.android.com/training/monitoring-device-state/index.html
关于java - 位置更新的最佳省电方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11505770/