Common commands for ANDROID_SDK

Source: Internet
Author: User
<span id="Label3"></p><p><p><span style="font-size: 14pt;"><strong>I. Configuring Environment variables<br>  </strong><span style="font-size: 16px;">To use these commands, you must first configure the environment Variables.</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">Configure the Platform-tools directory and tools directory in the Android-sdk-windows directory to the PATH environment variable</span><strong><br></strong></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">  </span></span></p></p><p><p></p></p><p><p><span style="font-size: 14pt;"><strong>second, the ADB command</strong></span></p></p><p><p><span style="font-size: 14pt;"><strong>  </strong><span style="font-size: 16px;">1. Start and close the ADB service</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">-start command: adb start-server</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">-close command: adb kill-server</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">2. Query the current emulator/device's real column</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">-command: ADB devices</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">3. Loading and running procedures</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">-install: adb-s emulator-5554 Install weige-java.apk (install The following to write the apk file on the Road)</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">-uninstall: adb-s emulator-5554 Uninstall Com.vince.weige (package name is the name of this Application)</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">-run: adb-s emulator-5554 Shell am start-n com.vince.weige/com.vince.main</span></span></p></p><p><p><span style="font-size: 16px;">4, pc and Simulator/real machine file transfer</span></p></p><p><p><span style="font-size: 16px;">-copy files from device to Pc:adb-s emulator-5554 pull/sdcard/1.jpg</span></p></p><p><p><span style="font-size: 16px;">-copy files from pc to device: adb-s emulator-5554 pushd:/2.jpg/sdcard/1.jpg</span></p></p><p><p>  <span style="font-size: 16px;">5. Enter the Linux command (shell Command)</span></p></p><p><p><span style="font-size: 16px;">-adb-s emulator-5554 Shell</span></p></p><p><p><span style="font-size: 16px;"></span></p></p><p><p></p></p><p><p></p></p><p><p><span style="font-size: 14pt;"><strong>second, Android Command</strong></span></p></p><p><p><span style="font-size: 14pt;"><strong>  </strong><span style="font-size: 16px;">1. create, delete, and browse the AVD device</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">Android Create Avd-n myavd2.3-t 10</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">Android Delete Avd-n Myavd</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">Android List Avds</span></span></p></p><p><p><span style="font-size: 14pt;"><span style="font-size: 16px;">Android list targets</span></span></p></p><p><p><span style="font-size: 14pt;"><strong>III. Emulator Order</strong></span></p></p><p><p><span style="font-size: 16px;">1. Start simulator: EMULATOR-AVD name [-sdcard]~/filename</span></p></p><p><p><span style="font-size: 16px;">EMULATE-AVD avd4.4 (the Name of the simulator created at that Time)</span></p></p><p><p><span style="font-size: 14pt;"><strong>Iv. maksdcard Command</strong></span></p></p><p><p>Common commands for ANDROID_SDK</p></p></span>

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.