Install SDK Based on Android and Java jdk adt Android SDK for Eclipse

Source: Internet
Author: User

**************************************** **************************************** **************************************** ***
Author: EasyWave time: 2013.01.03

Category: Android source code analysis statement: reprinted. Please keep the link

NOTE: If any error occurs, please correct it. These are my Learning Log articles ......

**************************************** **************************************** **************************************** ***

Due to the fact that some time ago, I had an operation on my left foot and back foot, so I haven't updated my articles on the Android2.3.5 Learning Series on my blog for a long time, today, we will install the SDK Development Environment Based on Eclipse for Android in Windows, which mainly includes the following parts to be installed and set:

1): install Java JDK

In http://developer.android.com/sdk/index.html, we can see androiddevelopment and install Java JDK. For Android2.3.5, Java6 or above is recommended, and Java5 is not recommended, as shown below:

Operating Systems
  • Windows XP (32-bit), Vista (32-or 64-bit), or Windows 7 (32-or 64-bit)
  • Mac OS X 10.5.8 or later (x86 only)
  • Linux (tested on Ubuntu Linux, Lucid Lynx)
    • Gnu c Library (glibc) 2.7 or later is required.
    • On Ubuntu Linux, version 8.04 or later is required.
    • 64-bit distributions must be capable of running 32-bit applications.

 

Eclipse IDE
  • Eclipse 3.6.2 (Helios) or greater

    Note:Eclipse 3.5 (Galileo) is no longer supported with the latest version of ADT.

  • Eclipse JDT plugin (embedded ded in most Eclipse IDE packages)
  • JDK 6 (JRE alone is not sufficient)
  • Android Development Tools plugin (recommended)
  • NotCompatible with GNU Compiler for Java (gcj)
Other development environments
  • JDK 6 (JRE alone is not sufficient)
  • Apache Ant 1.8 or later
  • NotCompatible with Gnu Compiler for Java (gcj)

Note:Some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which areNotSupported for Android development.

You only need to install Java 6. Download Java 6 JDK in http://www.oracle.com/technetwork/java/javase/downloads/index.html, as shown in:

2) download Eclipse

Because it is used in the Mobile environment, you only need to download the mobile version of Eclipse in the http://eclipse.org/mobile. As shown in:

Because it is used to develop Andriod applications in windows, you only need to download the 32-bit version of Windows.

3) download Android SDK & AVD

In http://developer.android.com/sdk/index.html, we only need to download Android SDK. As shown in:

Download the SDK Tools for Windows.

4) download the ADT

Go to ingress:

Click Installing the Eclipse Plugin to download the ADT, as shown in:

In this way, we only need to download the four basic programs, as shown below. The pictures on my computer are as follows:

5) Installation

1) install jdk-6u38-windows-i586.exe first, and then set the environment variables. For how to set the environment variables, refer to: articles on the network, which will not be detailed here.

2): after installing the eclipse-mobile-juno-SR1-win32, you just need to decompress it under the path folder you want. Shows the installation path of Eclipse:

3): Install the Android SDK

Click installer_r21.0.1-windows.exe to install it. I will install it in the path of Android under Eclipse, as shown in:

Click SDK Manager to install the Android SDK, as shown in:

I downloaded Anroid4.2 and Anriod2.3.3. We didn't download any other versions. After the download, it will be automatically installed, so you don't need to worry about it.

4) Installation of ADT

You can search for the installation of the ADT on the network. After the installation, the Anriod option will appear in Eclipse, and then the Android SDK will be automatically loaded into Eclipse, AVD settings can also be searched on the network, which is very simple. After completion, as shown in:

If you do not see the virtual keyboard, you can refer to the following content: (because I defined the resolution of X)

When Android custom pixels (such as 800X480) are used, the AVD simulator does not have a keyboard, but does not affect the test.

The relationship between PC and Android keyboards is as follows:

Emulated Device Key

Keyboard Key

Home

HOME

Menu (left softkey)

F2OrPage-up button

Star (right softkey)

Shift-F2OrPage Down

Back

ESC

Call/dial button

F3

Hangup/end call button

F4

Search

F5

Power button

F7

Audio volume up button

KEYPAD_PLUS, Ctrl-F5

Audio volume down button

KEYPAD_MINUS, Ctrl-F6

Camera button

Ctrl-KEYPAD_5, Ctrl-F3

Switch to previous layout orientation (for example, portrait, landscape)

KEYPAD_7, Ctrl-F11

Switch to next layout orientation (for example, portrait, landscape)

KEYPAD_9, Ctrl-F12

Toggle cell networking on/off

F8

Toggle code profiling

F9 (only with-trace startup option)

Toggle fullscreen mode

Alt-Enter

Toggle trackball mode

F6

Enter trackball mode temporarily (while key is pressed)

Delete

DPad left/up/right/down

KEYPAD_4/8/6/2

DPad center click

KEYPAD_5

Onion alpha increase/decrease

KEYPAD_MULTIPLY (*)/KEYPAD_DIVIDE (/)

Note: If you want to use a KEYPAD, you must disable Num Lock.

 

 

 

Related Article

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.