"Baidu Map-Android SDK" start from the beginning to write Android programs

Source: Internet
Author: User

First of all, make sure that there are four files

650) this.width=650; "src="%5c "alt=" \ "\" "/>

Installing the JDK

Install the android SDKfirst(not just for Eclipse Service), run installer_ R15-windows, Specify the storage directory , and then install, install to the later specify the version of Android you want to install , etc., for example I choose 1.6 version, continue with the installation, and it will soon be over.

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, has been waiting for 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

650) this.width=650; "src="%5c "alt=" \ "\" "/>

Create a new Android Project, and then modify the program as described in the book

For existing projects, the direct file-import-general-existing Projects Import this can, but after importing to pay attention to set the project properties of the androidapi version, Otherwise, it is a grammatical error to tell you all.

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 running the program is OK, you may first want to add a virtual machine, just create a new one, but do not set too large SD card capacity, which will occupy hard disk space.

650) this.width=650; "src="%5c "alt=" \ "\" "/>

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 be prompted 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 put back the workspace The directory is set to the active workspace by selecting the workspace of this backup in file-switch workspace-other

And then Eclipse will restart and then you can develop it normally.


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.