The usage summary of the Android Development debugging tool _android

Source: Internet
Author: User

Android Debugging Tools, here is a summary of the finishing.

DDMS --Dalvik Debug Monitor Service

Configure the emulator.

ADB process Android Debug Bridge establishes a connection between Eclipse and Android devices

CMD into the DOS interface, the ADB command operation.

ADB start-server: Start adb process
ADB kill-server: Killing the ADB process
ADB devices: View the device that is currently connected to the development environment, and this command can also start the ADB process
ADB install xxx.apk: Installing APK to Simulator
ADB Uninstall Package Name: Removing the application in the simulator
ADB shell: Go to linux command line

PS: View the running process
LS: View the file structure under the current directory
Netstat-ano: View the process of seizing ports

Sometimes the ADB is not launched, it may be that the ADB's 503 ports are occupied by someone else, Netstat-ano to view the process of seizing ports and entering task Manager to kill the occupied process.

Logcat

Total log information is divided into 5 levels
* Verbose: Redundancy, lowest level, default
* Debug: Debug
* Info: Information of normal level
* Warn: Warning
* ERROR: Wrong

Select a level to view information for that level and above.

    1. Define filters for easy viewing.
    2. The log level of the System.out.print output is Info,tag is System.out
    3. Android provides log output api:tag can be defined by itself

LOG.V (TAG, "Come on, children's Shoes");
LOG.D (TAG, "Come on, children's Shoes");
LOG.I (TAG, "Come on, children's Shoes");
LOG.W (TAG, "Come on, children's Shoes"); orange
LOG.E (TAG, "Come on, children's Shoes");

Thank you for reading, I hope to help you, thank you for your support for this site!

Related Article

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.