How to Create Sample Hello World Application in Android ?

January 10, 2025 No Comments »









How to Create Sample Hello World Application in Android ?


Step 1 : Open Eclipse IDE.
Step 2 : Click on File -> New -> Other Project.

Step 3 : New Dialog Box will be opened
Step 4 : Select Android Project.

Step 5 : Click on “Next” button.
Step 6 : Now Create Project Window Will be Opened. Give Proper name for your very first Android Project

Step 7 : Now Note Down Default project location and Click Next.

Step 8 : Give proper Application name and Package name for your android project.
Step 9 : After Click on finish button. Eclipse will create sample android application for you, which exactly looks like this -


Add following code in the .java file as shown above -

TextView text = new TextView(this);
 text.setText("Welcome to Android - Pritesh");
 setContentView(text);

Step 10 : Click Run (Ctrl + F11).
Step 11 : Select Android Application if prompted.
Step 12 : Select Application Name to be opened .

Leave A Response