In Android development, encountered bug can be fixed, through the log, or debug various methods can be resolved. But how can you solve the problem of high power consumption?
This question is met for the first time, will feel impossible, no slightest clue. But the problem arises, and it has to be dealt with by the bite.
First check the phone what the most power consumption, cell phone settings-"More-" battery, see which applications power consumption situation. Determine the fact of power consumption.
Second, we want to check why it is so power-hungry, suggest you next HyperTerminal, this will have some knowledge of Linux, run Top-m 5-t,
Shows a list of 5 processes by CPU size. can see which process, CPU usage is high, I believe these 5 you can see the clues,
You probably have your package name.
Then we download a strace command installation package, this ask Niang. After installation, run Strace-p 456 and see what your code is doing,
The power of electricity is the culprit.
Well, there is no understanding, add my group consulting, 263862916
Solutions to high power consumption problems in Android development