How to start the android SDK 1.5 Simulator

Source: Internet
Author: User
Tags sendmsg tagname

For the new version of SDK 1.5, you must first create {
Function onclick ()
{
Sendmsg ('PW _ Ajax. php', 'Action = relatetag & tagname = android', this. ID)
}
} "> The simulator can be started only after the running environment of the android Virtual Device (" AVD "for short.
The following are the specific steps:

{
Function onclick ()
{
Return checkurl (this)
}
} "Href =" http://dl.google.com/android/android-sdk-windows-1.5_r1.zip "target =" _ blank "> Android 1.5 SDK R1 download
{
Function onclick ()
{
Return checkurl (this)
}
} "Href =" http://dl.google.com/android/android-sdk-windows-1.5_r2.zip "target =" _ blank "> Android 1.5 SDK R2 download
Check whether JDK is installed on the computer. If not .... {
Function onclick ()
{
Return checkurl (this)
}
} "Href =" http://download.java.net/jdk6/6u10/promoted/b32/binaries/jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe "target =" _ blank "> click to download

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

Input path (this {
Function onclick ()
{
Sendmsg ('PW _ Ajax. php', 'Action = relatetag & tagname = pcs', this. ID)
}
} "> Path: the path where the simulator is stored. You must enter the path according to your path ):

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 for storing the SDK simulator, right-click the simulator program, and choose "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.