SlideShare a Scribd company logo
Android
Course
Amira Elsayed Ismail
1
Agenda
 Install Android SDK.
 Create Hello World Application.
 Testing your application on emulator.
 Testing your application on real device.
2
Install Android SDK
 Make sure you have Java JDK installed in your
computer check : C:Program Files
(x86)Java
 Download Eclipse IDE check :
https://www.eclipse.org/downloads/
 Download Android SDK check :
http://developer.android.com/sdk/index.html
3
Install Android SDK (Cont’d)
 After you finish downloading, unzip them
to have the following :
4
Open Eclipse
and try to
create new
Android project.
1
5
You will not be able to
create Android project as
you didn’t integrate Android
SDK with Eclipse IDE yet.
2
6
You will need to install new software to add Android ADT Plugin to Eclipse IDE
please check : http://developer.android.com/sdk/installing/installing-
adt.html
3
7
4
8
5
9
6
After installation complete you will have to restart eclipse.
10
7
In the SDK
folder we will
find SDK
Manager, run
it to open SDK
installer, you
will find a list
with all
available
Android API
Android 4.4 is
Kitkat
11
8
Her I have
installed
difference
versions to be
able to test
my
application
on different
OS version like
(2.1, 2.2, 3.2
and 4.2.2)
12
9
Return back
to eclipse to
add the
preference
of our
android SDK
installation
folder.
13
10
In Android Preferences Tab  Browse for SDK location  choose “sdk” inside
“adt-bundle-……” and apply your changes
14
You can always be able to update your Android SDk and
download latest Android API either from the SDK folder on
your hard disk, or by accessing the following icon in eclipse
toolbar.
You can also copy this folder that contains (eclipse , Android
SDK) to any other Windows PC and just update the
references and work again without need to reinstall and do
all these steps again.
15
16
Create Hello World
Application
 We will create a small application that
print “Hello World” on mobile screen.
17
1
18
Open Eclipse
and try to
create new
Android project.
You will find a new tab for
Android projects.
You have 4 options :
Android Application Project
: to create new android
project
Android Project from Existing
Code: Will let you
open/import a project that
already exist
Android Sample Project: if
you download Sample
projects that came with
SDK, you will be able to
open them.
2
19
1- Enter application
name that will be
shown when you install
application on your
device.
2- Enter project name
and package name.
3- Choose Minimum
SDk : The Android
system will prevent the
user from installing the
application if the
system's API Level is
lower than min SDK.
4- Choose Target SDK:
This attribute informs
the system that you
have tested against
the target version and
all versions after it.
3
20
1- Select create
launcher icon to create
app icon, and you can
change it later.
2- Select create activity
to create the first
activity in your project.
3- Press next.
4
21
1- Here you can browse
and choose
application icon, or just
use default android
icon, you can change
it later.
2- You can also choose
the background color
of the first activity that
you have created.
5
22
1- Here you can
choose the type of
your activity (Blank, Full
Screen in case of
games OR
Master/Details Flow)
6
23
1-Now enter the
activity layout name
and activity class
name.
7
24
1- Congratulation, you
have just finish creating
your first android
application (Hello
World!!)
8
25
Testing your application on
emulator
 Now we will show how to define Virtual
Device Emulator to be able to test our
application.
26
You can access AVD Manager from SDK folder, or using
Android Virtual Device Manager from eclipse toolbar
1
27
You will find list of all virtual devices that you have already
define, and by pressing NEW you will be able to define a new
one.2
28
Enter required data like (Name, Device, Target SDK, etc…) and
press OK
3
29
You will have a confirmation message with the virtual device
details.
4
30
Result of running your first application, You have did a great
job.
5
31
Testing your application on
real device.
 To be able to run your application on your
mobile device:
 Connect your device using USB cabel.
 Make sure you have installed your device
drivers.
 Follow the instructions in the next slide 
32
33
34

More Related Content

PPTX
Android studio installation
PPTX
Android studio installation
PPTX
Android course (lecture1)
PPTX
Android the first app - hello world - copy
PPT
Multiple Activity and Navigation Primer
PPT
Android tutorial
PPT
Getting started with android studio
PPT
Day: 2 Environment Setup for Android Application Development
Android studio installation
Android studio installation
Android course (lecture1)
Android the first app - hello world - copy
Multiple Activity and Navigation Primer
Android tutorial
Getting started with android studio
Day: 2 Environment Setup for Android Application Development

What's hot (20)

PDF
Training android
DOCX
Getting Enter in Android development
PPTX
How to create android applications
PDF
Mobile App Testing ScanAgile 2012
PPTX
Creating the first app with android studio
PPT
Day 3: Getting Active Through Activities
PDF
Sensors in Android (old)
PPTX
Deployment options for mule applications
PPTX
Android App Development 20150611
PPTX
Cloud hub deployment
PPTX
Android MapView and MapActivity
PPTX
PPTX
Coded ui - lesson 3 - case study - calculator
PPTX
Anroid Tutorial Beginner level By SAMRAT TAYADE
PPTX
Android App development I
PPTX
Android development session 5 - Debug android studio
PPTX
Android App development III
PPTX
Introduction_to_android_and_android_studio
PDF
01 04 - android set up and creating an android project
PDF
What’s new in Xcode 8? – Future of Native App Development Opportunities
Training android
Getting Enter in Android development
How to create android applications
Mobile App Testing ScanAgile 2012
Creating the first app with android studio
Day 3: Getting Active Through Activities
Sensors in Android (old)
Deployment options for mule applications
Android App Development 20150611
Cloud hub deployment
Android MapView and MapActivity
Coded ui - lesson 3 - case study - calculator
Anroid Tutorial Beginner level By SAMRAT TAYADE
Android App development I
Android development session 5 - Debug android studio
Android App development III
Introduction_to_android_and_android_studio
01 04 - android set up and creating an android project
What’s new in Xcode 8? – Future of Native App Development Opportunities
Ad

Similar to Android course (lecture2) (20)

PPTX
Android deep dive
PPTX
Android
PDF
[CCDD2013w] Coming to grips with deving for android by 蔡亦恒
PPTX
Android software development – the first few hours
PPTX
Android development session
PPTX
Android
PPTX
Android Basic
PPT
Android Application Development Using Java
PPT
Getting started with android dev and test perspective
PDF
ANDROID PPT 1.pdf
PPTX
Project anatomy & hello world
PPTX
Android app developers in bangalore- thorsignia
PPT
Synapseindia android apps application
PDF
Homework seriesandroidworkshop JUly 12th
PPTX
02.1 - Getting Started with Android
PPTX
02 getting start with android app development
PPTX
Getting started with android programming
PPTX
Android styles and themes
PPTX
Android workshop
Android deep dive
Android
[CCDD2013w] Coming to grips with deving for android by 蔡亦恒
Android software development – the first few hours
Android development session
Android
Android Basic
Android Application Development Using Java
Getting started with android dev and test perspective
ANDROID PPT 1.pdf
Project anatomy & hello world
Android app developers in bangalore- thorsignia
Synapseindia android apps application
Homework seriesandroidworkshop JUly 12th
02.1 - Getting Started with Android
02 getting start with android app development
Getting started with android programming
Android styles and themes
Android workshop
Ad

More from Amira Elsayed Ismail (8)

PPTX
Introduction to Agile and Scrum.pptx
PPTX
Moodle installation guide
PPTX
DBeaver installation guide
PPTX
Xampp installation guide
PPTX
UberTest Quick Guide
PPTX
Subversion and bug tracking
PPTX
PPTX
Software Development Process
Introduction to Agile and Scrum.pptx
Moodle installation guide
DBeaver installation guide
Xampp installation guide
UberTest Quick Guide
Subversion and bug tracking
Software Development Process

Recently uploaded (20)

PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
RMMM.pdf make it easy to upload and study
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PDF
Complications of Minimal Access Surgery at WLH
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Business Ethics Teaching Materials for college
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
Anesthesia in Laparoscopic Surgery in India
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Microbial disease of the cardiovascular and lymphatic systems
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pharma ospi slides which help in ospi learning
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Renaissance Architecture: A Journey from Faith to Humanism
RMMM.pdf make it easy to upload and study
Supply Chain Operations Speaking Notes -ICLT Program
Cell Types and Its function , kingdom of life
Complications of Minimal Access Surgery at WLH
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Final Presentation General Medicine 03-08-2024.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
O7-L3 Supply Chain Operations - ICLT Program
Business Ethics Teaching Materials for college
Module 4: Burden of Disease Tutorial Slides S2 2025

Android course (lecture2)

  • 2. Agenda  Install Android SDK.  Create Hello World Application.  Testing your application on emulator.  Testing your application on real device. 2
  • 3. Install Android SDK  Make sure you have Java JDK installed in your computer check : C:Program Files (x86)Java  Download Eclipse IDE check : https://www.eclipse.org/downloads/  Download Android SDK check : http://developer.android.com/sdk/index.html 3
  • 4. Install Android SDK (Cont’d)  After you finish downloading, unzip them to have the following : 4
  • 5. Open Eclipse and try to create new Android project. 1 5
  • 6. You will not be able to create Android project as you didn’t integrate Android SDK with Eclipse IDE yet. 2 6
  • 7. You will need to install new software to add Android ADT Plugin to Eclipse IDE please check : http://developer.android.com/sdk/installing/installing- adt.html 3 7
  • 8. 4 8
  • 9. 5 9
  • 10. 6 After installation complete you will have to restart eclipse. 10
  • 11. 7 In the SDK folder we will find SDK Manager, run it to open SDK installer, you will find a list with all available Android API Android 4.4 is Kitkat 11
  • 12. 8 Her I have installed difference versions to be able to test my application on different OS version like (2.1, 2.2, 3.2 and 4.2.2) 12
  • 13. 9 Return back to eclipse to add the preference of our android SDK installation folder. 13
  • 14. 10 In Android Preferences Tab  Browse for SDK location  choose “sdk” inside “adt-bundle-……” and apply your changes 14
  • 15. You can always be able to update your Android SDk and download latest Android API either from the SDK folder on your hard disk, or by accessing the following icon in eclipse toolbar. You can also copy this folder that contains (eclipse , Android SDK) to any other Windows PC and just update the references and work again without need to reinstall and do all these steps again. 15
  • 16. 16
  • 17. Create Hello World Application  We will create a small application that print “Hello World” on mobile screen. 17
  • 18. 1 18 Open Eclipse and try to create new Android project.
  • 19. You will find a new tab for Android projects. You have 4 options : Android Application Project : to create new android project Android Project from Existing Code: Will let you open/import a project that already exist Android Sample Project: if you download Sample projects that came with SDK, you will be able to open them. 2 19
  • 20. 1- Enter application name that will be shown when you install application on your device. 2- Enter project name and package name. 3- Choose Minimum SDk : The Android system will prevent the user from installing the application if the system's API Level is lower than min SDK. 4- Choose Target SDK: This attribute informs the system that you have tested against the target version and all versions after it. 3 20
  • 21. 1- Select create launcher icon to create app icon, and you can change it later. 2- Select create activity to create the first activity in your project. 3- Press next. 4 21
  • 22. 1- Here you can browse and choose application icon, or just use default android icon, you can change it later. 2- You can also choose the background color of the first activity that you have created. 5 22
  • 23. 1- Here you can choose the type of your activity (Blank, Full Screen in case of games OR Master/Details Flow) 6 23
  • 24. 1-Now enter the activity layout name and activity class name. 7 24
  • 25. 1- Congratulation, you have just finish creating your first android application (Hello World!!) 8 25
  • 26. Testing your application on emulator  Now we will show how to define Virtual Device Emulator to be able to test our application. 26
  • 27. You can access AVD Manager from SDK folder, or using Android Virtual Device Manager from eclipse toolbar 1 27
  • 28. You will find list of all virtual devices that you have already define, and by pressing NEW you will be able to define a new one.2 28
  • 29. Enter required data like (Name, Device, Target SDK, etc…) and press OK 3 29
  • 30. You will have a confirmation message with the virtual device details. 4 30
  • 31. Result of running your first application, You have did a great job. 5 31
  • 32. Testing your application on real device.  To be able to run your application on your mobile device:  Connect your device using USB cabel.  Make sure you have installed your device drivers.  Follow the instructions in the next slide  32
  • 33. 33
  • 34. 34