how to set Android Environment SDK

Android Environment:Eclipse & ADT

The Android Development Tools (ADT) pluginfor Eclipse adds extensions to the Eclipse IDE. It allows you to create and debug Android applications easier and faster. Advantages
1.It gives you access to other Android development tools from inside the Eclipse IDE. For example:
•take screenshots,
•Debug / set breakpoints, and
•view thread and process informationdirectly from Eclipse.
2.It provides a New Project Wizard, which helps you quickly create and set up all of the basic files you'll need for a new Android application.
3.It automates and simplifies the process of buildingyour Android application.
4.It provides an Android code editor that helps you write valid XML for your Android manifest and resource files.
5.It will exportyour project into a signed APK, which can be distributed to users.


SETUP

Download the Android SDK –

Installing on Windows, Linux, Mac OSThis page is taken from http://developer.android.comIf you're already using the Android SDK, 
you should update to the latest tools or platform using theAndroid SDK and AVD Manager, rather than downloading a new SDK starter package.
 Windows installer_r08-windows.exe
Mac OS X (intel)android-sdk_r08-mac_86.zip
Linux (i386)android-sdk_r08-linux_86.tgzHere's an overview of the steps you must follow to set up the Android SDK:
 
1.Prepare your development computer and ensure it meets the system requirements.
2.Install the SDK starter package from the table above. (If you're on Windows, download the installer for help with the initial setup.)
3.Install the ADT Pluginfor Eclipse (if you'll be developing in Eclipse).
4.Add Android platforms and other components to your SDK.
5.Explore the contents of the Android SDK (optional).To get started, download the appropriate package from the table above, then read the guide to 

Step 1. Preparing Your Development Computer

1 Make sure you have already installed the most recent JDK.
2.Make sure you have Eclipse installed on your computer (3.4 or newer is recommended). Eclipse is available from: http://www.eclipse.org/downloads/(For Eclipse 3.5 or newer, the "Eclipse Classic" version is recommended)

Step 2. Downloading the SDK Starter Package

The SDK starter package is not a full development environment—it includes only the core SDK Tools, which you can use to download the rest of the SDK components (such as the latest Android platform).
If you downloaded the Windows installer (.exefile), run it now to install the SDK Tools into a default location (which you can modify, usually the folder is:
c:/your-chosen-path/android-sdk-windows
Make a note of the name and location of the SDK directory on your system—you will need to refer to the SDK directory later, when setting up the ADT pluginand when using the SDK tools from command line.
Step 3. Installing the ADT Pluginfor Eclipse
Android offers a custom pluginfor the Eclipse IDE, called Android Development Tools (ADT). This is the recommended platform. You may want to first read Installing the ADT Pluginfor step-by-step installation instructions, then return here to continue the last step in setting up your Android SDK.

Step 4. Adding Platforms and Other Components

You will use theAndroid SDK and AVD Manager(a tool included in the SDK starter package) to download essential SDK components into your development environment.
If you used the Windows installer, when you complete the installation wizard, it will launch the Android SDK and AVD Manager with a default set of platforms and other components selected for you to install. Simply clickInstallto accept the recommended set of components and install them.
You can launch the Android SDK and AVD Manager in one of the following ways:
From within Eclipse, selectWindow > Android SDK and AVD Manager.
On Windows, double-click theSDK Manager.extfile at the root of the Android SDK directory.
On Mac or Linux, open a terminal and navigate to thetools/directory in the Android SDK, then execute: android

Installing the Eclipse ADT Plugin

(Link: http://developer.android.com/sdk/eclipse-adt.html#installing)To simplify ADT setup, it is recommend installing the Android SDK prior to installing ADT.Eclipse 3.5 (Galileo) and 3.6 (Helios)
1.Start Eclipse, then selectHelp>Install New Software....
2.ClickAdd, in the top-right corner.
3.In the Add Repository dialog that appears, enter "ADT Plugin" for the Nameand the following URL for theLocation:https://dl-ssl.google.com/android/eclipse/Note: If you have troubles try using "http" instead of "https”ClickOK.
4.In the Available Software dialog, select the checkbox next to Developer Tools and clickNext.
5.In the next window, you'll see a list of the tools to be downloaded. ClickNext.
6.Read and accept the license agreements, then clickFinish.
7.When the installation completes, restart Eclipse.

Configuring the ADT Plugin

The next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:
1.SelectWindow>Preferences...to open the Preferences panel (Mac OS X:Eclipse>Preferences).
1.SelectAndroidfrom the left panel.
2.For theSDK Locationin the main panel, clickBrowse...and locate your downloaded SDK directory (c:/path/android-sdk-windows)
3.ClickApply, then
OK.
Done!

0 comments: