30
2 Android Application Tutorial All Copy Rights Saved to the 7 th Students’ Conference on Communication and Information Based in the Faculty of Computers and Information Cairo University – Egypt 2011/2012 www.scci-cu.com Tutorial Code: APS-02-2012 Instructed on: 17-Feb-2012 | Tutorial: #02 By : Yasmine Sherif Mahmoud

Android hello world application tutorial #1

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Android hello world application tutorial #1

2

Android Application Tutorial

All Copy Rights Saved to the 7th Students’ Conference on Communication and Information Based in the Faculty of Computers and Information Cairo University – Egypt 2011/2012 www.scci-cu.com

Tutorial Code: APS-02-2012

Instructed on: 17-Feb-2012 | Tutorial: #02

By : Yasmine Sherif Mahmoud

Page 2: Android hello world application tutorial #1

• You can install the SDK from here: http://developer.android.com/sdk/index.html

• You can install Eclipse from here: http://www.eclipse.org/downloads/

>> Choose: Eclipse IDE for Java EE Developers

• After installing the SDK and Eclipse.

• Open Eclipse and follow the following steps.

Page 3: Android hello world application tutorial #1
Page 4: Android hello world application tutorial #1
Page 5: Android hello world application tutorial #1

Fill in the package name

Page 6: Android hello world application tutorial #1

Choose Any Android version you want

Page 7: Android hello world application tutorial #1

Fill in the Application Name

Fill in the package name with a unique three parts separated by dots name

Choose it according to the version you chose before

Page 8: Android hello world application tutorial #1

• By now you will have created the project and you will have the following window:

Page 9: Android hello world application tutorial #1

Expand this file to see this java file

This is where you write your java code

Page 10: Android hello world application tutorial #1

Expand this to see the Android Jar files

Page 11: Android hello world application tutorial #1

Expand this to see the files concerned with the graphics and sounds of your application

Page 12: Android hello world application tutorial #1

This is the main.xml file where you will have the graphical layout of the application

Page 13: Android hello world application tutorial #1

That’s how the Graphical Layout looks like. You can control the application layout from there

Page 14: Android hello world application tutorial #1

• Now, return to the .Java file where we will write a Hello world code.

Page 15: Android hello world application tutorial #1

Write this three line code instead of the one you have

Page 16: Android hello world application tutorial #1

• Before going to the next step we will create the AVD (Android Virtual Device) or the emulator on which we will test the application.

Page 17: Android hello world application tutorial #1
Page 18: Android hello world application tutorial #1
Page 19: Android hello world application tutorial #1

Fill in the name of your emulator

Choose the target according to the version of the application you chose

Fill in any size for the memory card

Page 20: Android hello world application tutorial #1

Now you will have your AVD created. Close the window after that.

Page 21: Android hello world application tutorial #1

• We now have to run our application.

Page 22: Android hello world application tutorial #1

Right click on the project

Page 23: Android hello world application tutorial #1

You may have this window so just click ok.

Page 24: Android hello world application tutorial #1

This is the AVD.

It may takes up to 2 or 3 minutes to launch so patiently wait.

Every version has a different emulator shape so don’t worry if you don’t have this shape.

Page 25: Android hello world application tutorial #1

Drag this circle to the right to unlock

Page 26: Android hello world application tutorial #1

Click this circle to go to the menu

Page 27: Android hello world application tutorial #1

Here is your Application.Click it.

Page 28: Android hello world application tutorial #1

This is how it is going to look like

Page 29: Android hello world application tutorial #1
Page 30: Android hello world application tutorial #1

Yasmine Sherif EL-Adly

@YasmineSherif91

+Yasmine Sherif EL-Adly

Contact Me: