Install Android

Categories: Android // Tags: , .
Email this to someonePrint this pageShare on Google+0Share on Facebook0Tweet about this on TwitterShare on LinkedIn0Share on Reddit0Pin on Pinterest0Share on StumbleUpon1
  • Android supports java, c++, c# etc. language to develop android applications. Java is the officially supported language for android. All the android examples of this site is developed using Java language and Eclipse IDE.
  • Here, we are going to tell you, the required softwares to develop android applications using Eclipse IDE.

There are two ways to install android.

  1. By ADT Bundle
  2. By Setup Eclipse Manually

1) By ADT Bundle

It is the simplest technique to install required softwares for android application. It includes:

  • Eclipse IDE
  • Android SDK
  • Eclipse Plugin

Click me to download android adt bundle


  • If you download the ADT from android site, you don’t need to have eclipse IDE, android SDK and eclipse Plugin because it is already included in adt bundle.
  • If you have downloaded the ADT bundle, unjar it, go to eclipse IDE and start the eclipse by clicking on the eclipse icon. You don’t need to do any extra steps here.
  • If eclipse is not started, paste the JRE directory inside the eclipse directory.

2) By set up eclipse manually

In this page, you will learn what softwares are required for running an android application on eclipse IDE. Here, you will be able to learn how to install the android SDK and ADT plugin for Eclipse IDE. Let’s see the list of software required to setup android for eclipse IDE manually.

  1. Install the JDK
  2. Download and install the Eclipse for developing android application
  3. Download and Install the android SDK
  4. Intall the ADT plugin for eclipse
  5. Configure the ADT plugin
  6. Create the AVD
  7. Create the hello android application

A) Install the Java Development Kit (JDK)

For creating android application, JDK must be installed if you are developing the android application with Java language.download the JDK


B) Download and install the Eclipse IDE

For developing the android application using eclipse IDE, you need to install the Eclipse. you can download it from this locationdownload the Eclipse. Eclipse classic version is recommended but we are using the Eclipse IDE for JavaEE Developers.


C) Download and install the android SDK

First of all, download the android SDK. In this example we have installed the android SDK for windows (.exe version).

Now double click on the exe file, it will be installed. I am using the android 2.2 version here.


D) Download the ADT plugin for eclipse

ADT (Android Development Tools) is required for developing the android application in the eclipse IDE. It is the plugin for Eclipse IDE that is designed to provide the integrated environment.

For downloading the ADT, you need to follow these steps:

1) Start the eclipse IDE, then select Help > Install new software…

2) In the work with combo box, write https://dl-ssl.google.com/android/eclipse/

Install Android

3) select the checkbox next to Developer Tools and click next

4) You will see, a list of tools to be downloaded here, click next

5) click finish

6) After completing the installation, restart the eclipse IDE


E) Configuring the ADT plugin

After the installing ADT plugin, now tell the eclipse IDE for your android SDK location. To do so:

  1. Select the Window menu > preferences
  2. Now select the android from the left panel. Here you may see a dialog box asking if you want to send the statistics to the google. Click proceed.
  3. Click on the browse button and locate your SDK directory e.g. my SDK location is C:\Program Files\Android\android-sdk .
  4. Click the apply button then OK.

F) Create an Android Virtual Device (AVD)

For running the android application in the Android Emulator, you need to create and AVD. For creating the AVD:

  1. Select the Window menu > AVD Manager
  2. Click on the new button, to create the AVD
  3. Now a dialog appears, write the AVD name e.g. myavd. Now choose the target android version e.g. android2.2.
  4. click the create AVD

G) create and run the simple android example

In this section, you will know how to create the simple hello android application. We are creating the simple example of android using the Eclipse IDE. For creating the simple example:

  1. Create the new android project
  2. Write the message (optional)
  3. Run the android application

Hello Android Example

You need to follow the 3 steps mentioned above for creating the Hello android application.

a) Create the New Android project

For creating the new android project:

1) Select File > New > Project…

2) Select the android project and click next

3) Fill the Details in this dialog box and click finish

Now an android project have been created. You can explore the android project and see the simple program, it looks like this:


b) Write the message

For writing the message we are using the TextView class. Change the onCreate method as:

Let’s see the full code of MainActivity.java file.

To understand the first android application, visit the next page (internal details of hello android example).


c) Run the android application

To run the android application: Right click on your project > Run As.. > Android Application

The android emulator might take 2 or 3 minutes to boot. So please have patience. After booting the emulator, the eclipse plugin installs the application and launches the activity. You will see something like this:

Install Android

Email this to someonePrint this pageShare on Google+0Share on Facebook0Tweet about this on TwitterShare on LinkedIn0Share on Reddit0Pin on Pinterest0Share on StumbleUpon1

About Team

Browse Archived Articles by Team