Double-click the android simulator, create sdcard, AVD, install the APK file, and upload the file to the simulator.

Source: Internet
Author: User

Running environment:

1. Install JDK

2. Install the android SDK

Suggestion: add the JDK and SDK environment variables and add the paths to the PATH environment variables.

Configuration steps:

1. Go to cmd command line mode and check whether JDK and Android have been installed and configured successfully.

(To determine whether JDK is installed, enter Java-version. If you can return the Java version information, the installation is successful)

(To determine whether Android is installed, enter Android-H. If Android version information is returned, the installation is successful)

2. Create AVD and sdcard

2.1 create AVD. In cmd command line mode, enter

> Android create AVD -- name sdk_rj5_avd -- Target 2

(Sdk_rj5_avd is the name of the created AVD, which can be any name)

2.2 create an sdcard. In cmd command line mode, enter

> Mksdcard 1024 m c: \ sdcard. img

(C: \ sdcard. IMG is the name and path of the created sdcard, and can be any name)

3. Add the-AVD sdk_rj5_avd-sdcard c: \ sdcard. IMG parameter after "target" from the attributes of Android-SDK \ SDK shortcut.

(Sdk_rj5_avd is an AVD file.

C: \ sdcard. IMG is the SD card file created)

Change to c: \ android-sdk-windows-1.5_r2 \ tools \ emulator.exe-AVD test-sdcard C: \ sdcard. img

4. Run emulator.exe.exe on the table to start the emulator.exe simulator with the SDK card.

5. Install the APK File

For example, an APK file is in E: \ Software \ Android \ mine.apk.

In cmd command line mode, enter

> ADB install E: \ Software \ Android \ mine.apk

The following message is displayed: PKG:/data/local/tmp/mine.apk success.

6. On the menu bar of the simulator, you have added a shortcut for installing the software. Click it to run the software.

7. upload files to a specified directory

In cmd command line mode, enter

> ADB push E: \ music \ helloft-/ sdcard/

(View directory method

> ADB shell enters the she'll command mode

# Ls View

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.