Why can my Android app sometimes drain my battery quickly?

Several users of my application reported that their battery runs out at about 1% per minute when my application runs in the background. I could not replicate this problem even when using the same credentials on the same device model on which there was a user error. Reinstalling the application does not seem to solve the problem, and there does not seem to be any specific version of Android or the device associated with this problem. All the reports that I had are Samsung devices running on 4.x, but it is also quite representative of my user base as a whole. My background service listens for GCM messages and contact list changes, as well as every time you spend an HTTP request using a ScheduledExecutorService.

I should also note that I do not use tracking locks in the application.

I am wondering if anyone has any ideas as to which errors can cause such a problem, or even which tools or methods can be effective in narrowing the scope of my problem.

+4
source share
2 answers

What percentage of users report this issue? If you tried it on a Samsung device running on 4.x and you didn’t have a problem other than your code, this is a problem.

0
source

If I were you, I would

  • Start testing with Wi-Fi turned off.

  • , (Charles 30- )

  • .

, .

0

All Articles