Before starting this tutorial, you should have read, understood, and successfully completed the tutorials listed below. These tutorials are the building blocks for this tutorial and are listed in order from basic building blocks to compound ideas.

  1. Installing Eclipse
  2. Updating Eclipse
  3. Importing Libraries into Eclipse
  4. Linking libraries to projects in Eclipse

Having completed these tutorials, you can now move on to creating a new Android project that will simply display “hello world!” on the device screen.

To do this, follow the procedure below:

1. Open Eclipse and let it load workspace.

2. Click File->New->Android Application Project


3. Enter the application, project, and package name as shown in the image below.


4. Configure the project as shown below.


5. Configure the attributes of the icons as shown below.


6. Create a blank activity as shown below.


7. Create the main layout for the activity as shown below and select “Finish”.


8. The application will be created and the main xml layout file will automatically be displayed as shown in the image below.


9. To run this application on your device right-click on the Example_helloWorld folder in the Package Explorer window on the left hand of the screen. Then select Run As->Android Application Project as shown below.


10. If your device is connected, it will be shown in the Android Device Chooser window. Select your device and select “OK”. Eclipse will compile the code into an Android Package file (.apk) and transfer it to your device.


11. Your device’s screen should be white and say “Hello world!”.

That’s it! Your first Android application is completed.

Leave a Reply

Your email address will not be published. Required fields are marked *