Android Hello World Example


In this tutorial, we will create our first Android Hello World application.


1. Technologies used

  • JDK 1.6
  • Eclipse 4.2 (Juno)
  • Android SDK Tools 23.0.2
  • Android 4.4.2 (KitKat)


2. Install Android SDK Tools

Download the stand-alone Android SDK from Android SDK home and install it.

Start Eclipse and go to Window> Preferences> Android to set the SDK location :



Go to window > Android SDK manager and choose which version of Android to install.

We can also update Android SDK if necessary.



If Eclipse doesn’t show Android SDK Manager, go to Window >  Customize perspective > Command Groups Availability and check the “Android SDK and AVD Manager” option.



3. Install ADT plugin

In Eclipse, go to Help > Install New Software, And use the following URL to download and install the ADT plugin.



4. Add an Android Virtual Device

It is an emulator configuration to model an actual device.

Go to Window > Android Virtual Device Manager and create a new Android Virtual Device : ADV1



5. Create a new application

In Eclipse, Use File> New> Project> ..> Android> Android Application Project :


We create a custom launcher icon :


While creating activity, we choose a “Blank Activity” :



In the end we will have the following project structure :


In activity_hello_world.xml, we have a TextView composant to display a message when launching application.

@string/hello_world refers to a string resource defined in strings.xml.

hello_world variable contains the Hello World message


6. Run It

Run the application in the ADV1 :


Click the application icon :



Download source code