I'm getting reports that my app is draining the battery, but only on HTC Incredible.
Posted
by BenTobin
on Stack Overflow
See other posts from Stack Overflow
or by BenTobin
Published on 2010-05-24T16:06:56Z
Indexed on
2010/05/24
16:11 UTC
Read the original article
Hit count: 211
Has anyone else noticed behavior specific to the HTC Incredible that might result in an app keeping the device awake and busy? I've received reports that my app is responsible for keeping the device awake and draining the battery, but only from HTC Incredible users.
My app responds to a number of Intents that might be related. It has a service that starts on boot, and it also responds to changes in network connectivity. I do use a WakeLock, but I'm careful to release it when I'm done processing, and the WakeLock times out after a couple minutes whether I'm done or not.
I've heard that the Incredible may have some connectivity problems, or that some of them do. Could it be that the network is going up and down frequently, triggering my app?
Any other ideas? I've asked a user to send me their logs with aLogCat. If they're willing, that may help narrow down the cause.
© Stack Overflow or respective owner