Question

I have a Service that uses the LocationListener, and it will be running from boot, indefinitely. My question is, how often is too often to listen for location updates? Is 5 minutes a battery killer? What about 1?

Was it helpful?

Solution

Yes, 5 minutes is a battery killer. I wouldn't use an interval smaller than 1 hour. It also depends on the location provider (network or GPS). GPS eats your battery much faster thank network.

OTHER TIPS

Depending on your usecase you might also want to consider the http://developer.android.com/reference/android/location/LocationManager.html#PASSIVE_PROVIDER that won't request updates on its own, but only receives location when other apps request them..

Otherwise I would make it configurable for the user how often new locations should be accquired and if to use GPS or network (network is faster, cheaper, but returns way more inaccurate locations).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top