How to start the android SDK 1.5 simulator)

Source: Internet
Author: User
References Article To set up Android simulator Env.

The new SDK 1.5 requires an android Virtual Device ("AVD") runtime environment before starting the simulator.
The following are the specific steps:

Download Android 1.5 SDK r1
Download Android 1.5 SDK r2
Check whether JDK is installed on the computer. If not .... Click to download

After installing JDK... Start-run-Enter cmd...
Open the black box ..

 

Input path (this path is the path where the simulator is stored, and you need to enter the corresponding path based on the path you have stored ):

 

Continue entering CD \ Java \ android-sdk-windows-1.5_r1 \ tools :( there is a space after CD)

 

Enter Android and press Enter next to the command.

 

A bunch of commands are displayed .. Ignore...

 

Enter Android create AVD-T 2-N G1 after the name, and press Enter. (Note: The last G1 in this command can be named at will. You can also choose another name, such as G2, Android ...)
[Remember that there are spaces between Android, create, AVD,-T, 2,-N, and G1]

 

A new command will pop up! We only need to enter NO and press Enter.

 

After completing the preceding operations, open the file that stores the SDK simulator and findProgramRight-click send-desktop shortcut.
After returning to the desktop, do not worry, right-click Properties!
Add-AVD G1 to the shortcut-target path (a space is required before this, the G1 followed by AVD must be the same as the name entered in the black box in the previous step ).

 

After adding the simulator, click "OK" to start the simulator directly on the desktop.

 

 

Add the method for loading the SD card (thanks nsnboy)

The android simulator allows us to use a disk image in FAT32 format as the SD card module.
I plan to record the process and share it with you today:
1. Go to the tools subdirectory under the android SDK directory and run
Mksdcard-l sdcard 512 m e: \ sdcard. img
In this way, a m SD card image file is created.
An sdcard. IMG file is generated under the e drive.
Of course, you can generate

2. Specify the path when running the simulator (note that the full path is required ):
Emulator-sdcard E: \ sdcard. img
In this way, the path sdcard can be used in the simulator to point to the simulated SD card.

So how do I copy local files to the SD card or manage the content on the SD card?
A. in Linux, We can mount a loop device and create a directory first, for example

Android_sdcard, and then execute:
Mount-o loop sdcard. IMG android_sdcard
In this way, the directory is used to manage the sdcard content.

B. in windows, we can use mtools for management, or the commands in Android SDK (

This command can also be used in Linux ):
ADB push local_file sdcardremote_file

You don't want to add-sdcard $ sdcard_path every time. You can copy sdcard. IMG ~ /. Android/AVD/Under the AVD directory.

 

From: http://www.oschina.net/

 

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.