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