SlideShare ist ein Scribd-Unternehmen logo
1 von 34
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

Weitere ähnliche Inhalte

Was ist angesagt?

Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android developmentGhufran Hashmi
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applicationsTOPS Technologies
 
Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Daniel Knott
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studioParinita03
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesAhsanul Karim
 
Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)Ahsanul Karim
 
Deployment options for mule applications
Deployment options for mule applicationsDeployment options for mule applications
Deployment options for mule applicationssivachandra mandalapu
 
Android App Development 20150611
Android App Development 20150611Android App Development 20150611
Android App Development 20150611Hideo Kadowaki
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivityAhsanul Karim
 
Coded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculatorCoded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculatorOmer Karpas
 
Anroid Tutorial Beginner level By SAMRAT TAYADE
Anroid Tutorial Beginner level By SAMRAT TAYADE Anroid Tutorial Beginner level By SAMRAT TAYADE
Anroid Tutorial Beginner level By SAMRAT TAYADE Samrat Tayade
 
Android development session 5 - Debug android studio
Android development   session 5 - Debug android studioAndroid development   session 5 - Debug android studio
Android development session 5 - Debug android studioFarabi Technology Middle East
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studioAbdul Basit
 
01 04 - android set up and creating an android project
01  04 - android set up and creating an android project01  04 - android set up and creating an android project
01 04 - android set up and creating an android projectSiva Kumar reddy Vasipally
 
What’s new in Xcode 8? – Future of Native App Development Opportunities
What’s new in Xcode 8? – Future of Native App Development OpportunitiesWhat’s new in Xcode 8? – Future of Native App Development Opportunities
What’s new in Xcode 8? – Future of Native App Development OpportunitiesRigel Networks LLC
 

Was ist angesagt? (20)

Training android
Training androidTraining android
Training android
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android development
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
 
Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)
 
Deployment options for mule applications
Deployment options for mule applicationsDeployment options for mule applications
Deployment options for mule applications
 
Android App Development 20150611
Android App Development 20150611Android App Development 20150611
Android App Development 20150611
 
Cloud hub deployment
Cloud hub deploymentCloud hub deployment
Cloud hub deployment
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivity
 
Calc app
Calc appCalc app
Calc app
 
Coded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculatorCoded ui - lesson 3 - case study - calculator
Coded ui - lesson 3 - case study - calculator
 
Anroid Tutorial Beginner level By SAMRAT TAYADE
Anroid Tutorial Beginner level By SAMRAT TAYADE Anroid Tutorial Beginner level By SAMRAT TAYADE
Anroid Tutorial Beginner level By SAMRAT TAYADE
 
Android App development I
Android App development IAndroid App development I
Android App development I
 
Android development session 5 - Debug android studio
Android development   session 5 - Debug android studioAndroid development   session 5 - Debug android studio
Android development session 5 - Debug android studio
 
Android App development III
Android App development IIIAndroid App development III
Android App development III
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
 
01 04 - android set up and creating an android project
01  04 - android set up and creating an android project01  04 - android set up and creating an android project
01 04 - android set up and creating an android project
 
What’s new in Xcode 8? – Future of Native App Development Opportunities
What’s new in Xcode 8? – Future of Native App Development OpportunitiesWhat’s new in Xcode 8? – Future of Native App Development Opportunities
What’s new in Xcode 8? – Future of Native App Development Opportunities
 

Ähnlich wie Android course (lecture2)

Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdkTran Le Hoan
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdfRebaMaheen
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdfRebaMaheen
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptxSundaresanB5
 
Android installation
Android installationAndroid installation
Android installationDurai S
 
Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setupChina Bigs
 
[CCDD2013w] Coming to grips with deving for android by 蔡亦恒
[CCDD2013w] Coming to grips with deving for android by 蔡亦恒[CCDD2013w] Coming to grips with deving for android by 蔡亦恒
[CCDD2013w] Coming to grips with deving for android by 蔡亦恒CCDD_DDLab
 
Android Programing Course Material Labs
Android Programing Course Material LabsAndroid Programing Course Material Labs
Android Programing Course Material LabsShady Selim
 
Android Development Tools and Installation
Android Development Tools and InstallationAndroid Development Tools and Installation
Android Development Tools and InstallationProf. Erwin Globio
 
03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application DevelopmentArief Gunawan
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Frank Pham
 
Mobile os by waqas
Mobile os by waqasMobile os by waqas
Mobile os by waqas8neutron8
 
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...NicheTech Com. Solutions Pvt. Ltd.
 
Android styles and themes
Android   styles and themesAndroid   styles and themes
Android styles and themesDeepa Rani
 

Ähnlich wie Android course (lecture2) (20)

Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdk
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdf
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdf
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
 
Android installation
Android installationAndroid installation
Android installation
 
Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setup
 
[CCDD2013w] Coming to grips with deving for android by 蔡亦恒
[CCDD2013w] Coming to grips with deving for android by 蔡亦恒[CCDD2013w] Coming to grips with deving for android by 蔡亦恒
[CCDD2013w] Coming to grips with deving for android by 蔡亦恒
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Android Programing Course Material Labs
Android Programing Course Material LabsAndroid Programing Course Material Labs
Android Programing Course Material Labs
 
Android development module
Android development moduleAndroid development module
Android development module
 
Android app upload
Android app uploadAndroid app upload
Android app upload
 
Android Development Tools and Installation
Android Development Tools and InstallationAndroid Development Tools and Installation
Android Development Tools and Installation
 
03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application Development
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1
 
Mobile os by waqas
Mobile os by waqasMobile os by waqas
Mobile os by waqas
 
Android session 1
Android session 1Android session 1
Android session 1
 
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
 
Android styles and themes
Android   styles and themesAndroid   styles and themes
Android styles and themes
 

Mehr von Amira Elsayed Ismail

Mehr von Amira Elsayed Ismail (8)

Introduction to Agile and Scrum.pptx
Introduction to Agile and Scrum.pptxIntroduction to Agile and Scrum.pptx
Introduction to Agile and Scrum.pptx
 
Moodle installation guide
Moodle installation guideMoodle installation guide
Moodle installation guide
 
DBeaver installation guide
DBeaver installation guideDBeaver installation guide
DBeaver installation guide
 
Xampp installation guide
Xampp installation guideXampp installation guide
Xampp installation guide
 
UberTest Quick Guide
UberTest Quick GuideUberTest Quick Guide
UberTest Quick Guide
 
Subversion and bug tracking
Subversion and bug trackingSubversion and bug tracking
Subversion and bug tracking
 
Gallerio
GallerioGallerio
Gallerio
 
Software Development Process
Software Development ProcessSoftware Development Process
Software Development Process
 

Kürzlich hochgeladen

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Kürzlich hochgeladen (20)

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

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