Android hello world application tutorial #1


Published on

Tutorials about how to start developing a simple Hello world Android Application.

Published in: Education, Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Android hello world application tutorial #1

  1. 1. Android Application Tutorial Instructed on: 17-Feb-2012 | Tutorial: #02 2  By : Yasmine Sherif Mahmoud Tutorial Code: APS-02-2012All Copy Rights Saved to the 7th Students’ Conference on Communication and Information Based in the Faculty of Computersand Information Cairo University – Egypt 2011/2012
  2. 2. • You can install the SDK from here:• You can install Eclipse from here: >> Choose: Eclipse IDE for Java EE Developers• After installing the SDK and Eclipse.• Open Eclipse and follow the following steps.
  3. 3. Fill in thepackage name
  4. 4. Choose Any Androidversion you want
  5. 5. Fill in the ApplicationName Fill in the Choose it package name according to the with a unique version you three parts chose before separated by dots name
  6. 6. • By now you will have created the project and you will have the following window:
  7. 7. Expand this file tosee this java file This is where you write your java code
  8. 8. Expand this to see theAndroid Jar files
  9. 9. Expand this to see the files concernedwith the graphics and sounds of yourapplication
  10. 10. This is the main.xml file where you will havethe graphical layout of the application
  11. 11. That’s how the GraphicalLayout looks like. You cancontrol the applicationlayout from there
  12. 12. • Now, return to the .Java file where we will write a Hello world code.
  13. 13. Write this three line codeinstead of the one you have
  14. 14. • Before going to the next step we will create the AVD (Android Virtual Device) or the emulator on which we will test the application.
  15. 15. Fill in the name of your emulatorChoose thetarget accordingto the version of Fill in any size for thethe application memory cardyou chose
  16. 16. Now you willhave your AVDcreated.Close the windowafter that.
  17. 17. • We now have to run our application.
  18. 18. Right click on the project
  19. 19. You may have this windowso just click ok.
  20. 20. This is the AVD.It may takes up to 2 or 3minutes to launch sopatiently wait.Every version has a differentemulator shape so don’tworry if you don’t have thisshape.
  21. 21. Drag this circle to the rightto unlock
  22. 22. Click this circleto go to themenu
  23. 23. Here is yourApplication.Click it.
  24. 24. This is how it is goingto look like 
  25. 25. Yasmine Sherif EL-Adly @YasmineSherif91+Yasmine Sherif EL-Adly