วันศุกร์ที่ 1 มิถุนายน พ.ศ. 2555

Android Development Tools



Android Development Tools

The Android Software Development Kits ( Android SDK ) is comprised of the platform, tools, sample code, and documentation
needed to develop Android applications. It is built as an add-on to the Java Development
Kit and has an integrated plugin for the Eclipse Integrated Development Environment.

Here's an overview of the steps you must follow to set up the Android SDK:
Prepare your development computer and ensure it meets the system requirements.
  1. JDK ( Java Development kit ) includes JRE
  2. Eclipse with Android Development kit ( SDK )  For SDK If you're on Windows, download the installer for help with the initial setup.
  3. ADT Plugin for Eclipse (if you'll be developing in Eclipse).
To get started, download the appropriate package.











1.JDK (Java Development Kit), which includes the JRE. ( I use Java SE 7 )










2.Eclipse  ( I use Eclipse Classic 3.7.1 )and  Android SDK ( lasted Version now android -sdk r18 )

 
3.Android Development tools ADT Plugin for Eclipse


Installing and Upgrading
There are many places on the Internet that discuss detailed step-by-step instructions on how to install the Android SDK. For example, all the necessary links can be found on the Google website http://developer.android.com/sdk/.Therefore, the general procedure outlined here serves to emphasize the most common installation steps for reference.These steps should be done on a host computer used as the development environment.

1. Install the Java Development Kit (for example, install JDK 6.0 for use with
Android 2.1 or above; JDK 5.0 is the minimum version needed for any earlier version
of Android).

2. Install Eclipse Classic (for example, version 3.7.1). In the case of Windows, this just
needs to be unzipped in place and is ready to use.

3. Install the Android SDK starter package (for example, version r16). In the case of
Windows, this just needs to be unzipped in place and is ready to use.

4. Start Eclipse and select Help → Install New Software..., and then type https://
dl-ssl.google.com/android/eclipse/ and install the Android DDMS and Android
Development Tools.

5. In Eclipse, select Window → Preferences... (on a Mac, select Eclipse → Preferences)
and select Android. Browse to the location where the SDK was unzipped
and apply.

6. In Eclipse, select Window → Android SDK and AVD Manager → Available
Packages, and then choose the necessary APIs to install (for example, Documentation
for Android SDK,API 8; SDK Platform Android 2.2,API 8; Google APIs by
Google Inc.; and Android API 8).

7. From the same Android SDK and AVD Manager menu, create an Android virtual
device to run the emulator or install USB drivers to run applications on a pluggedin
phone.

8. In Eclipse, select Run →Run Configurations... and create a new run configuration
to be used with each Android application (or similar for a Debug Configuration).
Android JUnit tests can be configured here, too.