ocroquette
ocroquette

Reputation: 3259

Is it required to get a wakelock for an Android service with an active LocationListener?

In my application, I have a service that has an active LocationListener and sends the location over the air. When the service is running, the phone never goes to sleep, and it keeps sending the locations, even though I don't have a wakelock. This is exactly what I want, but I was wondering if that's the expected behavior. I couldn't find any information on this in the SDK documentation. Can I rely on it, or is it safer to get my own wakelock ?

Upvotes: 0

Views: 447

Answers (1)

Mukund Samant
Mukund Samant

Reputation: 1089

Running location services continuously is battery consuming.User do not like apps that consume their battery and they wont think twice before deleting the app.Best idea is to wake up service only when needed. Please check this link for more information on battery usage trade offs

Upvotes: 1

Related Questions