Android Setup

Android Application development can be done either on the following operating Systems-

  1. Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)
  2. Mac OS X 10.5.8 or later (x86 only)
  3. 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.

Android development tools are freely available and can be downloaded from the web. Before Starting Android Application Development you will need following software's for Android Application Development.

  1. Java JDK 5 or later
  2. Android SDK
  3. IDE (Either Eclipse or other Android IDE like Android Studio)
  4. Android Application Tools (ADT) Eclipse Plug-in for existing Eclipse setup

Above given last two components are optional according to your development need on different OS and these components will make your life easy if you will work on Windows machine while doing Java based application development.

Step 1 : Setting Up Java Development Kit (JDK)

You can download the latest version of Java JDK from Oracle's Java website : JAVA SE Downloads. After Downloading follow the given instructions and Install the JDK and configure the setup. After Installing set PATH and JAVA_HOME environment variables to refer the directory that contains java and javac.

For Windows System
Computer->Properties->Advanced->Advanced System Settings->Environment Variables->System Variable

Edit the path and set -
Path = C:\Program Files\Java\jdk1.7.0_17\bin

Create new as JAVA_HOME and set -
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_17

For Linux
path (/usr/local/jdk1.7.0/bin)
JAVA_HOME (/usr/local/jdk1.7.0)

Step 2 : Setup Android SDK


You can choose downloading ADT Bundle package that in addition to Android SDK Tools includes Eclipse + ADT + NDK/CDT plugins, Android Platform-tools, the latest Android platform and the latest Android system image for the emulator - this is the best choice for those who is setting up Android development environment the first time.

Latest version of Android SDK can be downloaded from Android official website : Android SDK Download. If you are installing SDK on windows machine, then you will find a installer file adt-bundle-windows-x86-******.zip for 32 bit and adt-bundle-windows-x86_64-******.zip for 64 bit.

If you are installing SDK either on Mac OS or Linux then it should be adt-bundle-mac-x86-******.zip or adt-bundle-linux-x86-******.zip.

Download the SDK according to your machine and install it by following the given instructions.

This tutorial will consider that you are going to setup your Environment on windows machine having Windows 7 operating system.
Now launch the Android SDK Manager by using either

All Programs -> Android SDK Tools -> SDK Manager

Or Manually go to the downloaded folder, inside the folder open SDK Manager.

This will give you following window -


Once you launched the Android SDK Manager, it prompt for installing the required packages. By default it will show some packages depending upon the version of Android you wanted to install. It is recommended not to select the Document for Android SDK and Samples for SDk packages to reduce the installation time. Now click the Install packages button to proceed, which will display the following dialog box.


You have to select Accept Licence radio button if you are agree to install the packages, and click Install button to proceed. Now SDK Manager install all the required packages, it can take some time to install complete packages depending on your Internet Connection speed. After installing all the packages, close the SDK Manager.

Step 3 : Setup Eclipse IDE

This tutorial will consider Eclipse IDE for writing all the Examples. Check the Android SDK System Requirements document for a list of Eclipse Versions that are compatible with the Android SDK. If you have no Eclipse installed, you can get it from the official website

After downloading the Eclipse extract the downloaded binary file to a convenient location and open it by double click on eclipse.exe. After successful startup, it should display like this -


Step 4 : Setup Android Development Tools (ADT) Plugin

This step include setting Android Development Tools (ADT) Plug-in for Eclipse. After starting the Eclipse select Help -> Install New Software. This will display the following dialogue box -


Here click Add button and fill Name - ADT and Location and click o.k. Now Eclipse starts searching for the plug-in available from the given location and finally lists down the found plugins.


Now select all the listed plug-ins using Select All and click next button which will guide you to the next to install Android Development Tools and other required plug-ins.

Step 5 : Create Android Virtual Device

After developing the Android Application you will need a virtual device to test your application. So before starting your code, create an Android Virtual Device. Launch Android Virtual Device Manager using Eclipse menu option Window -> Android Virtual Device Manager. Use New button to create a new Android Virtual Device and enter the following given information, before clicking o.k button.


If Android Virtual Device is created successfully it means your environment is ready for Android Application development. Now you can close this window and can restart your machine. Now you are ready to develop your first Android application.