2012-07-16 46 views
8

我想写一个Adroid应用程序,应该在后台运行,并通知用户,当他将接近数据库中给出的地方。我应该通过扩展IntentService类中的requestLocationUpdates来完成它吗?最佳的位置更新电池节省方法

什么是尽可能使电池尽可能耗尽的最佳方式?

回答

2

雷托•梅耶尔已经对这个话题写了大量:http://android-developers.blogspot.in/2011/06/deep-dive-into-location.html

还有一个在Android开发者网站上Optimizing Battery Life一节:http://developer.android.com/training/monitoring-device-state/index.html

+0

好吧,我会读这两个议题仔细的明天。但从知情者的角度来看,我应该使用IntentService还是仅仅使用工作更新时简单的Activity? – Nav 2012-07-16 17:04:22

相关问题