Wednesday 19 June 2013

Android Hello World Example


Required
1.Android SDK
2.Eclipse
3.Java Platform

Lets Begin

Create a new Android project (File->New->Android Application).
Then add
Project Name : d
Build Target:4.0
Application Name:d_test
Package Name:com.d
Activity Name:D_Activity

click on finish button on bottom.

Now you have your project created in workspace.
The src folder in project contains the java class file and the res->layout folder contains a main.xml.
Now Create a Android Virtual Device (Window->AVD Manager->New)
Then add
Name:AndroidICS
Target:4.0
SDCard Size: 512mb then click on create Avd button will take some time to create a new AVD.

lets run the new app ,
right click on your project  ->Run As Android application and select your new AVD.
Now at the end you can see the following result
Now, are able to create a hello world android application.