- Home /
Finding out what is eating the batteries
Hi everyone!
It seems that our Android app is still using the batteries even when put "in the background" by pressing the "Home" button, thus draining the batteries way faster.
This is strange because we dont' use any services,and in TaskManager, the app is not using more than 0.80% of the CPU. My collegue suggests that it could be the use of the use of 3G network (for exemple for loading highscore from online) that is eating the batteries. When I go to Settings/Batteries , the app is showing as taking 10% of the battery. EDIT : this number is NOT the current usage of the batteries, but the average usage since the last reload of the battery. My bad.
Do you know any way I could check the data being transfered from and to the phone ? And do you have another idea on why my app could be eating the batteries ?
Thx you all! (and sorry if I made any english mistake ^^)
Well we have several plugins integrated in the app which are writted in native code (handling socre online, stats, crash logging, etc...). What have you in $$anonymous$$d ? (btw thx for the reply)
Answer by Statement · Aug 07, 2012 at 02:42 PM
Mono and dalvik should be paused together with the activity. If you create a new project and suspend that, does this new project consume about the same amount of power? If it doesn't, then I would suggest that you try and isolate the issue to your plugins through disabling them entirely and run it through one more time. If you are saving power, then you should look into pausing any code that is running in your plugins.
Oki I'll do that, disabling the plugins one at a time. (The problem seems to be worst as people report having the app in the battery usage list right after a complete charge!)
Your answer
Follow this Question
Related Questions
.NET Socket Support for iOS/Android Basic 4 Answers
Connection failed - android to editor/standalone 1 Answer
Android Os stays at 60 to 70 % after playing a game, depletes battery life. 1 Answer
How can I use WebClient to download files on Android when behind a proxy? 1 Answer
Android network view 0 Answers