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.
source
share