Android First Program

First Program in Android (using Eclipse)
Run Eclipse
Click on File menu, select New. From sub menu of new click on Android Application Project.

Android-first-project-eclipse
If there is no Android Application Project then click on Project on sub menu of New, And choose Android and then Android Application Project and click Next.
Android-first-project-eclipse-file-menu
A new windlow will open, Fill the required fields.
Android-new-app

Enter proper application name, By convention Application first letter must be capital.

Keep Application name and Project name same.

Difference between Application name and Project name is that Application name is shown in Play store and Project name is for Eclipse and will unique in workspace.

Enter proper Package name with a dot.

Build SDK is maximum Android API version And Minimum SDK is Android API that require minimum API to run this program, so our device or emulator must be equal or greater than minimum API version.

Click on next

Change icon settings if you required or click next.

In following window select BlankActivity and click next.

android-first-program

In next window change main activity or main layout name and click finish.

Your first program will created in exlipse.

Right click on your project select Run As and click Android Application.

Your first application in emulator

android-hellow-world-program-in-emulator

Leave a comment

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