"Baidu Map-Android SDK" start from the beginning to write Android programs
First of all, make sure that there are four files
Installing the JDK
Install the Android SDK first (not just for Eclipse service), run installer_r15-windows, specify storage
Installation, install to later specify the version of Android you want to install, etc., such as I choose 1.6 version, continue to install,
It will be over soon.
Unzip eclipse to anywhere, run Eclipse.exe, point to help Point install new software, select
http://dl-ssl.google.com/android/eclipse/
Note that you cannot be HTTPS
Then choose two packages, which is
"Android DDMS" and "Android development Tools"
installation, straight wait, a long time, midway may occasionally fail due to network reasons, and then can be installed.
Restart Eclipse (he will force the request)
He will let you specify the directory of the Android SDK (or let you download it), then specify the specified storage directory just to complete.
This directory is usually the directory shown
Create a new Android project, and then modify the program as described in the book
For existing projects, direct file-import-general-existing projects import this can, but after the import to pay attention to set up the project
The ANDROIDAPI version of the property, otherwise all tells you that it is a syntax error.
If you do not have a real machine but want to run the program, force the Android virtual machine to be increased by WINDOW-AVD Manager
As shown in the Run program is OK, may be the second to add virtual machine, just create a new one, but do not set too large
SD card capacity, which takes up hard disk space.
Click Run, and if you don't use your phone to connect to your computer, Eclipse launches a simulator run program. If you do not have a new emulator, you will
Prompt to create a new one.
You can set breakpoints at the same time while debugging, double-click the left end of the row in the Source code window.
The reload system requires attention:
The directory for Eclipse and various SDKs can be reused, not on C-drive
The JDK still needs to be installed after the system is re-installed.
Open Eclipse First
Select Window-perference-android, set the directory where the SDK is located (this directory with tool, etc.)
Then select android2.1 (or other version) to select Apply
Then this workspace is still empty, and is located to the C drive, so you can set the previously backed up workspace directory to live
File-switch Workspace-other Select the workspace of this backup to
And then eclipse will restart and then you can develop it normally.