Common android commands 1

Source: Internet
Author: User

As an android Development Engineer, we will inevitably use Android commands in our development. Some commands are indeed very useful. The following describes the ADB shell commands that are frequently used in development.

1. Run the TOP command to check the percentage of CPU occupied by the application.

The figure shows that the CPU usage of the Media Player provided by the mobile phone system is 19%.

2. Start and close the ADB Service (ADB start-server and ADB kill-server)

During daily development, the ADB Service (cannot connect to the simulator or mobile phone) encounters an exception after the simulator or mobile phone is running for a period of time. In this case, you need to shut down and restart the ADB service again. Of course, restarting eclipse may solve the problem. But that is troublesome. To manually disable the ADB service, use the following command.

ADB kill-Server

After the ADB service is disabled, run the following command to start the ADB service.

ADB start-Server

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.