Saturday 9 February 2013

Sample Hello World Program in Android or Writing our First Program in Android

Hai Friends Now we are going to write our first program for Android OS.
If you don't have Android Development Environment.. Refer here how to set up Android Development Environment.

Step 1:
Open Eclipse IDE..


Step 2:
Select
File ->New ->Android Application Project


Step 3:
Give Project Name and Application Name as "HelloWorld"

Step 4:
If You want to change project location you can use here otherwise skip this step and press Next Button

Step 5:
If You want to change you application icon. Here you can change the icon.

Step 6:
If you want to change Activity. here you can change the Activity. In our Helloworld program The Blank Activity is Enough.

Step 7:
Here You can assign name for Activity class and xml file.
Give "HelloWorld" as Activity Name
and
Give "main" as Layout Name

Step 8:
Click finish Button..
Now You Project has created...

Step 9:
In Src Folder you can find Activity class name..
here only you will write your java code for our application.

Step 10:
In Layout Folder you can find xml file for our application.
here only you will write your xml code for our application Appearance.

Step 11:
In Our HelloWorld Program we no need to write any coding...
we just simple run the project...
Right click project and Select Run as and choose Android Application

Step 12:
Now Our output is displayed in Emulator..





Thanks for Visiting
 --
Regards with

R. Partha Sarathy


No comments:

Post a Comment