Android Tutorials
Working With Android Contacts
Accessing Data With Android Cursors
Creating Lists Using The Android ListActivity
Android 9 Patch Scaled PNG Image Guide
Working With Images In Android
Exploring Android LinearLayout And RelativeLayout
Writing A Basic Android Application
Installing The Android SDK In Eclipse

Installing The Android SDK In Eclipse

Introduction

The Android SDK is a development kit created by Google for developing on the Android platform. Google also released an Eclipse plugin that allows for Android SDK integration in the Eclipse IDE. Also an emulator is included to ease development and debugging. The development kit is modular allowing for only certain components or Android SDK versions to be installed.

Downloading and installing the Android SDK

Download the Android SDK from Google http://developer.android.com/sdk/index.html. Uncompress the downloaded archive and copy the package to a suitable location. Take note of this location you'll need to put it into the Eclipse plugin later.

 $ tar -zxvf android-sdk_r3-linux.tgz
 # cp -a android-sdk-linux /usr/local

Installing the Eclipse plugin

Open Eclipse and go to Help > Install New Software. Then click add button to add a new site.
Eclipse Add Plugin Site

Give the new site a descriptive name such as Google Android Dev and use eclipse update site https://dl-ssl.google.com/android/eclipse/ to install the Android ADT eclipse plugin. Click ok and eclipse will download the information about available packages from the new site.
Eclipse Install Android SDK

Check developer tools and click next.
Eclipse Install Android SDK Continued

Click next again confirming the list to install including any dependancies. Accept the license agreement and click finish. Eclipse will download and install the plugins. Accept any warnings about an unsigned application being installed. Finally Restart Eclipse when prompted

Configure The Android Eclipse Plugin

Go to Window > Preferences and open the android preferences. Set the location of the Android SDK to where you installed it earlier. Now it's time to install the plugin packages.

Install SDK Packages

Once the SDK has been installed there are associated packages that need to be downloaded through the SDK. Go to Window > Android AVD and SDK Manager. Notice the phone icon next to the option. That also appears in the toolbar as a shortcut to the Android AVD & SDK manager.
Eclipse Install Android SDK Continued

Click available packages in the left pane and expand the predefined Google source. Select the SDK platforms and APIs for the desired platforms and click install selected. It's probably best just to install all the packages as applications should be tested on multiple platforms and Android revisions. Accept the license agreement and click install. This is a lot of data so expect it to take a while depending on your internet speed. Finally restart adb when prompted. The packages should now be listed under the installed packages pane.

 1 2  >> Building an Android Emulator
New Content