First: Android development environment Build-up

Source: Internet
Author: User

First, Android Introduction

Android is a Linux kernel-based software platform and operating system.
Android architecture consists of 3 parts, Linux kernel layer, class library, virtual machine and core component library layer, application framework layer
Android applications are developed using the Java language.


Second, the development environment to build

Preparation of the software:
JAVA JDK 1.6
Eclipse 3.6 (Eclipse-java-helios-win32.zip)
ADT 0.9.7 (Android development Tools)
SDK Tools R6 (android-sdk_r06-windows.zip)
    • Installation of the JDK
    • Installation of Eclipse
    • Installation of ADT (Android development Tools)
      ADT is a plug-in for Eclipse and a development tool for Android development with Eclipse, which is not itself an android SDK.
      The installation method is the same as for other Eclipse plug-ins (help-> install New software ...).
      A small robot icon appears in the Eclipse toolbar when the ADT installation is successful

    • Installation of SDK Tools
      SDK tools itself is not the Android SDK, but the SDK's download tool and Configuration tool to download various versions of the SDK through SDK tools. When configuring the SDK path in ADT, in fact he is looking for SDK Tools, so we don't download and discuss the SDK separately.
      The installation process requires networking
      First step: Run SDK Setup.exe under Windows, run Tools\android under Mac
      The second step: Install the SDK in the country, need to put settings in the Force https://... option is checked to download normally. <ignore_js_op>

    • The third step: Choose the available installation package available Packages, choose the content of the installation selection, then the network download the whole process takes about 1 hours.
    • After the installation is complete, you can see all the installation packages in the installed packages.
    • Configuring the SDK in ADT
      Eclipse->windows->android->SDK location, assign the root directory of the SDK tools to it, and the environment is built

III. test Environment: Build a new project we test that the environment is installed correctly by creating a new Android project and running it. The steps to create are as follows:
1. Eclipse->file->new Android Project
2. Project name:lesson1_helloandroid
3. Build Target Tick Android 2.2
4, Application Name:helloandroid
5. Package Name:android.basic.lesson1.helloandroid
6. Create activity:mainhelloandroid
7. Min SDK Version:8

IV. test Environment: Running a new project

Create a new virtual appliance AVD, you need to build a mobile phone simulator before you can run a project.
In Eclipse point small robot--Virtua Devices--New ...
name:2.2_400
Target:android 2.2–api Level 8
SD card:size 50MiB
skin:wqvga400
Create AVD

To run the Android project:
Right-click on the project name, Run as ...
Select Android application, which will start the emulator and run the program, the boot time will take a few minutes, start and run normally when a similar content appears. This means that your development environment is built. After the emulator starts, the effect looks like this page:

Drag the lock to the right, you can see the program running, Hello,world. Mainhelloandroid! At this point the environment is built and tested.

Note: I tested the pass under Windows 7,eclipse 3.6 and Mac 10.6.4,eclipse3.6.

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.