Development Environment for Android learning notes

Source: Internet
Author: User

Blog:

Http://www.apkbus.com/android-641-1-1.html

Http://www.cnblogs.com/skynet/archive/2010/04/12/1709892.html

Http://www.cnblogs.com/DavidSmith/archive/2011/10/26/2225320.html


I. a preliminary understanding of Android

1. Android is an open-source mobile operating system based on the Linux kernel.

2. Android consists of the Linux kernel layer, class library, virtual machine and Core Component Library, and application framework layer.

3. The underlying layer of the development language is C/C ++, and the application layer is mainly java. I heard that C/C ++ can also be used.

4. supported platforms: x86, arm, and MIPS.

Details:

Http://baike.baidu.com/view/1241829.htm

 

II. Environment Construction

1: install Java JDK

Video tutorial: http://115.com/file/dp4rw8t1

Install JDK: http://115.com/file/c29yr4js

The environment variables are set differently.

2: Install eclipse

Eclipse Introduction: eclipse is an integrated development environment developed by Java. Many plug-ins, so they can be used

Java, C, C ++, Ruby, Python, and other development tools.

Details: http://baike.baidu.com/view/23576.htm

Download and decompress eclipse.

: Http://www.eclipse.org/downloads/

It is said that Eclipse IDE for Java developers is better than 149 MB.

3: Install the android SDK.

: Http://developer.android.com/sdk/index.html

Then install Android SDK tools. Android SDK tools with SDK manager and AVD manager running SDK Manager

Click to download the required SDK package.

If the download fails, select options in tools in the upper left corner. The operation is as follows:

You can also go to the CMD command window and check whether the SDK is successfully installed.
If Android-H has the following output, the installation is successful:

4: ADT

1. After eclipse is started, choose help> install new software.

2. In the pop-up window, click the Add button, enter the name (for example, Android), and enter the location field (ADT plus-in URL ),

Http://dl-ssl.google.com/android/eclipse/, click OK

3. Wait for online update of the available list, and then select and install Android ddms (Android Dalvik debug moniter server) and

Android development tools (ADT), which can also be selected.

4. Select next, accept the installation protocol, click Finish, and wait until the installation is complete.

5. After completion, you will be prompted to restart eclipse (Click restart now ).

5: Create AVD.

1: In eclipse, click open the android Virtual Devices and fill in the name. Select the target API. the SD card is of any size and skin is selected. Currently, hardware retains the default value.

2: Click Create AVD to create the AVD.

6: Engineering Test

Project Creation is basically the same, but the current new version is to create an Android Application project.

Mainly these two names

Projectname: name of the project's folder

Application name: Is show in the play store, or in the manage Application List in settings.

Activity name: the name of the class to creat

Title: The name of the activity. For launcher activities, the application title.


Note the format of COM. XXX. XXX For pagename.



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.