[Baidu map-android SDK] starts from scratch to write android programs

Source: Internet
Author: User

[Baidu map-android SDK] starts from scratch to write android programs
First, make sure there are four files

 
Install jdk
First install android Development SDK (not just for eclipse services), that is, run the installer_r15-windows, specify the storage
And then install it. After installation, specify the android version you want to install later. For example, if I select version 1.6, continue the installation,
It will soon end.
Uncompress the eclipseto any location, run eclipse.exe, click help to install new software, and select
Http://dl-ssl.google.com/android/eclipse/
Note that it cannot be https
Then select two packages, yes
"Android DDMS" and "Android Development Tools"
Installation, waiting for a long time, may fail occasionally due to network reasons in the middle, and then install again.
 
 
Restart eclipse (mandatory)
He will ask you to specify the android sdk directory (or let you download it again), and then specify the storage directory you just specified.
This directory is usually the directory shown in

 
 
Create an android project and modify the program as mentioned in the book.
For existing projects, you can directly import file-import-general-existing projects. However, you must set the project after the import.
The version of the property androidAPI. Otherwise, all of them indicate a syntax error.
If you do not have a real machine but want to run the program, forcibly Add the android Virtual Machine by Window-AVD Manager.
Run the program as shown in. It is OK. You can add a virtual machine for the second time. Just create a new virtual machine, but do not set it to too large.

SD card capacity, which will occupy hard disk space.

Click run. If you do not need a mobile phone to connect to your computer, eclipse will start a simulator to run the program. If no new Simulator exists
You are prompted to create a new one.
You can also set a breakpoint during debugging. Double-click the left side of the line in the source code window.
 
 
Note the following before reinstalling the system:
The directories of Eclipse and various sdks can be reused. Do not place them on drive C.
Jdk needs to be installed after the system is reinstalled.
Open eclipse first
Select window-perference-android and set the directory where the sdk is located (with this directory such as tool)
Then select android2.1 (or another version) and select apply
The workspace is still empty and located on drive C. Therefore, you can set the previously backed up workspace directory to active.
The dynamic workspace can be selected in file-switch workspace-other.
Then eclipse will restart and then it will be ready for normal development.

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.