Sunday, 13 January 2013

Building Hello World Android App

Hope U all Understood My Last post about installing Android Development Environment.....
Now i will Show you How To build a Simple Hello World App in Eclipse....... :)
Let's get started... 


  • Create a new Android project (File > New > Android Application)
  • Set your project properties
    • Project Name: Hello World
    • Application Name: Hello World
    • Package Name: com.Gaurang.test
    • Min Required SDK : Android 2.3 or any as you want
    • Target SDK: Select Android 4.2 or any you want
  • Press " Next ".


  • Select your App logo & press Next

  • Then Select Blank Activity & press Next. 



  • Give Activity Name & press Finish.


  • your Project is created, now start Developing.
  • First open The activity_main.xml file.
  • Drag & Drop The TextView  & Button from sidebar to the graphical xml view.

  • I Renamed the Button name to "Click Here". 
  • Now open the MainActivity.java file from the side navigation panel as shown in fig below.


  • Now copy the code given Below.

  • Save all files.
  • now run the App in the AVD  By clicking on the Run button on the menu bar of Eclipse as shown below.

  • your App Is ready to run Now , Emulater  will open & your App gets Started.

  • Now On clicking The Button It will Display a message for short priod of time.

Congratulaions Your First App Is Ready....
Stay Tuned For More Help....
Happy Coding :)

No comments:

Post a Comment