Solutions to high power consumption problems in Android development

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.