HelloWorld Application in Android

June 10, 2012

In this article, we are going to see, how to create a HelloWorld application in Android.

This application is developed in Eclipse ( 4.2.1 ) with ADT plugin ( 20.0.3 ) and Android SDK ( R20.0.3 )

1. Open Eclipse IDE

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

Create a new Android application project

Figure 1 : Create a new Android application project

As shown in the Figure 1 , enter HelloWorld as the project name

3. Design application launcher icon :

Design  an application launcher icon for this application

Figure 2 : Design an application launcher icon for this application

4. Create a blank activity

Create a blank activity to define MainActivity class

Figure 3 : Create a blank activity to define MainActivity class

5. Enter MainActivity details

Enter Main Activity Details

Figure 4 : Enter Main Activity Details

6. Delete Android Support Library from this project, if exists

By default Eclipse ( 4.2.1) adds Android Support Library to  Android application project. For this application, we don’t need to use this support library. So the library file libs/android-support-v4.jar may be removed manually via ProjectExplorer by simply right click on the file and then clicking the menu item “delete”

7. Run the application by clicking the menu Run -> Run . The output is shown below :

Application in execution

Figure 5 : Application in execution

8. Download the Code

9. Testing with Android Testing Framework

Only the 50% of the application development is completed now. The remaining 50% is with the testing of the application and it is discussed in the article  titled “Android Testing Example – Helloworld with ActivityUnitTestCase” .

How to hire me?

I am George Mathew, working as software architect and Android app developer at wptrafficanalyzer.in

You can hire me on hourly basis or on project basis for Android applications development.

For hiring me, please mail your requirements to info@wptrafficanalyzer.in.

My other blogs

Android Knowledge Quiz

Ready to test your knowledge in Android? Take this quiz :

Pages: 1 2

Tags: ,

Leave a Reply

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

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner