Create a Hello World App for Android in Eclipse

In the following tutorial we will create a Hello World App for Android. The application will display the typical “Hello world!” greeting when we run it through the AVD (Android Virtual Device). We’ll develop all the source code in Eclipse with the help of the ADT plugin (Android Development Tools) and test the application through AVD (included within the plug in).

1.- Prerequisites.


2.- Create the Android Project.

Select File > New > Android Application Project.

Then fill in the inputs with the following information:

  • Application Name: HelloWorld (The name that will be displayed in the phone).
  • Project Name: HelloWorld (The name of the project in Eclipse)
  • Package Name: (The package where your code will go)
  • Minimum Required SDK: API 10: Android 2.3.3 (Gingerbread) (Here you are selecting the minimum version of Android in which your application will run)
  • Target SDK: API 16 Android 4.1 (Jelly Bean) (The Target SDK)
  • Compile With: API 16 Android 4.1 (Jelly Bean) 
  • Theme: Holo light with Dark Action Bar 


Click Next and click Next again leaving the default options. The next screen introduces us the Icon launcher configuration, leave as default and click Next.

In the next screen check Create Activity and choose “Blank Activity” and click Next.

Name your Activity as “HelloAndroid”. The Activity is the default screen your application shows when it’s initialized.

Click Finish and wait for the magic to end.


That’s it, your Hello World App is already created, you only have to run it.

2.- Run the App in a Virtual Device

If you don’t have a Virtual Device configured yet, here are the instructions to configure one.

You need to start your Virtual Device before you run the app. Open Android Virtual Device Manager and click the Start button.

The emulator will start but it doesn’t have your app yet.


To install the app in the Virtual Device emulator you have to select the project in the Package Explorer, right click on it and select Run as > Android application.

And voilá! Your Hello World Application is up and running.


One comment: On Create a Hello World App for Android in Eclipse

Leave a reply:

Your email address will not be published.

Copyright © 2016 Marco Tello.