Android Zero-start--android development environment installation

Source: Internet
Author: User

Installation of the Android development environment

1 IDE

Android can use the developed IDE with Eclipse or Android Studio. Android Studio is also in the V 0.1.x version, which is early access preview. So I chose Eclipse + ADT as a method of development.

In fact, there is nothing complicated, the official website has made a development environment integration package (ADT bundle) for the developer. ADT is Android Develop Tools. This integration pack contains the ECLIPSE,SDK,SDK Manager.

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

Specific use only need to download the Android ADT bundle Zip, unzip, and then launch eclipse on it.

2 Installing different versions of the SDK

The bundle defaults to the latest version of the SDK (4.2.2) installed. Of course there are all kinds of Android versions on the market now, we need to install different versions of the SDK to develop. The SDK Manager is the tool for managing the SDK.

Run the SDK Manager under bundles

Tick the corresponding version of the SDK, from here you can basically know that an Android version corresponds to a version of the API.

Each of these packages has a few files:

Documentation for Android SDK: Android SDK documentation SDK Platform:android SDK Kit, you must install the samples for SDK:SDK use example after the installation of adt-bundle-xxxx \sdk\samples directory will see the corresponding file sources for Android SDK:SDK source code, after the installation of adt-bundle-windows-x86-20130522\sdk\sources The directory will see the corresponding file Google APIs: Google Maps provides a set of APIs, if your app does not use Google Maps, can not be installed, but it is recommended to install ARM EABI v7a System Imageintel x86 Atom System Imagemips System Image

These three are the system impression files for simulators, which are under different CPU platforms. Must be installed, or the emulator will not open.

The corresponding file will be seen in the Adt-bundle-windows-x86-20130522\sdk\system-images directory after installation

3 Installing the ADT plugin for Eclipse

There are some ADT plugins on the official bundle, and if not, we can follow:

Http://developer.android.com/sdk/installing/installing-adt.html

Install the ADT plugin.

4 Creating the simulator

New virtual machine (AVD) in Android virtual devices in eclipse

AVDName: Emulator name

Device: Equipment name, including settings for screen size

Target: The version of Android to run

Cpu/abi: The system impression file that the simulator will run

Keyboard: Whether external keyboard is supported

Skin: simulator appearance

Front Camera

Back Camera

Front-and rear-facing cameras

Memory Options:

RAM: Emulator's memory space

vm Heap: The Android system is running on the Dalvik virtual machine, the VM heap is the maximum memory of the virtual machine, that is, the maximum memory consumption of a single application.

Internal Storage: internal storage size. Internal storage is the presence of data in the device's internal memory.

SDCard: The size of the SD cards.

5 Creating HelloWorld

New--andriod project in Eclipse--Create a HelloWorld project.

This step is basically using the default options

6 HelloWorld Project Mount AVD

Eclipse-run-run configurations

Right-click android Application--New

Select the HelloWorld project in Project--Select the AVD you just created in target--Apply

This allows the running project to automatically turn on the virtual machine

==================================
Xuan Chi Blade (yjf512)
Source: (http://www.cnblogs.com/yjf512/)
Copyright notice: The copyright of this article is owned by the author and the blog Park. Welcome reprint read, reprint must indicate the detailed link of this article.

Android Zero-start--android development environment installation

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.