SlideShare a Scribd company logo
You’re Welcome to
Tehran 1st
Android Bootcamp
Tehran's 1st Android bootcamp - Part1
Android Means
an·droid
/ˈanˌdroid/
Noun
(in science fiction)
A robot with a human appearance.
Android…
• Is an open source platform designed for mobiles
devices under licenses (Apache/MIT)
• Is based on the open Linux kernel
– Portability: easy to compile on various hardware
– Security: a highly secure system
– Features: support for memory management, power
management, and networking
• Championed by Google
• Separates the hardware from the software
• Core is designed to be portable to run on all sorts of
physical devices and screen size
Android…
• For Developers:
– Provides all tools for developing mobile apps quickly and
easily
– Don’t even need a physical phone to start developing
• For Users:
– Can customize their phone experience
• For Manufacturers:
– Complete solution for running their devices
– Other than some hardware-specific drivers, provides
everything else to make their devices work.
Tehran's 1st Android bootcamp - Part1
Tehran's 1st Android bootcamp - Part1
History
• In 2005, Google buys Android, Inc.
• Everything goes quiet for a while!
• In 2007, the Open Handset Alliance is announced. Android is
officially open sourced.
• In 2008, the Android SDK 1.0 is released. The G1 phone,
manufactured by HTC and sold by the wireless carrier T-Mobile USA,
follows shortly afterward.
• 2009 sees a proliferation of Android-based devices. New versions of
the operating system are released: Cupcake (1.5), Donut (1.6), and
Eclair (2.0 and 2.1). More than 20 devices run Android.
• • In 2010, Android is second only to Blackberry as the best-selling
smart phone platform. Froyo (Android 2.2) is released and so are
more than 60 devices that run it.
Tehran's 1st Android bootcamp - Part1
Tehran's 1st Android bootcamp - Part1
Android Versions
Two Pre-commercial internal release versions
(2007–2008)
• Android alpha:
– Released before 5 Nov 2007
– Code-named “Astro Boy”, “Bender”, “R2-D2”
• Android beta:
– Released on 5 Nov 2007 ~ 28 Sep 2008
– Code-named “m3-rc22a”, “m3-rc37a”, …
Android Versions
Cupcake 1.5 2009/04/30
• HTC Dream, the first
Android device
• Features: android market,
web browser, camera
support, gmail, Google
contact, calendar, maps,
sync, search, talk, media
player, notification, voice
dialer, you tube, …
Android Versions
Donut 1.6 2009/09/15
• based on Linux kernel
2.6.29
• Features: Voice and text
entry search,
Multilingual speech
synthesis, faster camera
access, technology
support for
CDMA/EVDO, 802.1x,
VPNs, …
Android Versions
Éclair 2.0, 2.1 2009/10/29
• based on Linux kernel
2.6.29
• Features: Bluetooth 2.1
support, Camera flash
support, digital zoom,
scene mode, white
balance, color effect and
macro focus, live
wallpapers, …
Android Versions
Froyo 2.2(frozen yogurt) 2010/05/20
• based on Linux kernel
2.6.32
• Speed, memory, and
performance optimizations,
Android Cloud to Device
Messaging (C2DM), USB
tethering and Wi-Fi
hotspot, file upload fields in
the Browser, Adobe Flash
support, …
Android Versions
Gingerbread 2.3 2010/12/06
• based on Linux kernel
2.6.35
• Features: Switched from
YAFFS to ext4,
enhancements for game
developers, Support for
extra-large screen sizes
and resolutions, …
Android Versions
Honeycomb 3.0 2011/02/22
• the first tablet-only Android
update
• Linux kernel 2.6.36
• First Tablet, Motorola
Xoom
• Features: Optimized tablet
support, System Bar
(notifications, status, and
soft navigation buttons),
Action Bar, Simplified
multitasking, ...
Android Versions
IceCream Sandwich 4.0 2011/10/19
• based on Linux kernel 3.0.1
• compatible with any
Android 2.3.x device
• Features: Multiple user
accounts , Face Unlock,
Google Chrome browser,
syncing users' Chrome
bookmarks, …
Android Versions
Jelly Bean 4.2 2012/06/09
• based on Linux kernel 3.0.31
• improving functionality and
performance of user
interface.
• the first device Nexus 7 tablet
• Bi-directional text and other
language support
• Offline voice dictation
Tehran's 1st Android bootcamp - Part1
Tehran's 1st Android bootcamp - Part1
Android Management Switch Up
Andy Rubin, head of Android at
Google, moved on to a new role
at the company.
Sundar Pichai (Pichai Sundarajan),
head of Chrome and Apps, is now in
charge of Android.
Google's Android Statue Gets a Chrome
Update
• The new statue is
mounted on Building
45
• perhaps some sort of
Chrome-Android
integration
• But It Doesn’t Mean
Anything!…
Android Next Version
• Google's "sweet" naming convention
• Every major release since Cupcake has been
named after a confection in alphabetical order
• Cupcake > Donut > Eclair > Froyo
> Gingerbread > Honeycomb > IceCream
Sandwich > JellyBean > K...!
Android Websites
• www.android.com
• developer.android.com
• Play.google.com
• www.stackoverflow.com
• www.openhandsetalliance.com
Tehran's 1st Android bootcamp - Part1
Tehran's 1st Android bootcamp - Part1
SDK: Android Software Development Kit
http://developer.android.com/sdk/index.html
Installing the Android ADT
• Download ADT, unzip (or on Linux, untar) it into an
easy access folder (for example)
– Windows
• C:appsandroid-adt-windows
– Linux
• /home/YourUserName/android-adt-linux_86
– Mac OS X
• /Users/YourUserName/android-adt-mac_86
• For Windows strongly recommend directories
without spaces
Tehran's 1st Android bootcamp - Part1
Tehran's 1st Android bootcamp - Part1
Creating a New Project
File→New→Project→Android Application Project
Creating a New Project
• In Eclipse choose,
– File→New→Project→Android Application Project
• Application Name:
– The name of your application
• Project Name:
– Eclipse organizes everything into projects
– project name should be one word and CamelCase
• Package Name:
– In Java, all source code is organized into packages
– Your package name (reverse of your domain name)
Creating a New Project
• Minimum required SDK:
– minimum version of Android that is required for the
device to run this application
• Target SDK:
– tells the build tools which version of the Android
platform you are building for
• Compile with:
– Typically the most recent version that support all API
• Theme:
– Base theme to user for application
Configure Project
New Android application→Next
Configure New Project
• Create custom launcher icon:
– Check to use a simple icon creator
• Create activity:
– Check to use activity creator tool
• Mark this project as library:
– Check if you want to create a library project to use
in other projects
Tehran's 1st Android bootcamp - Part1
Tehran's 1st Android bootcamp - Part1
Android Project Important Parts
• Manifest File
• Layout XML Code
• Strings
• The R File
• Java Source Code
Manifest File
• Glues everything together
• Explains what the application consists of
• What all its main building blocks are
• What permissions it requires
• What is the application name, application icon
• What is package name, version Code & Name
• …
Layout XML Code
XML file specifies the layout of your screen
Layout XML Code
• XML file specifies the layout of your screen
– TextView
– Spinner
– Button
– ImageView
Strings
XML file that contains all the text that your application uses
Strings
• XML file that contains all the text that your
application uses:
– names of buttons
– labels
– default text
– and similar types of strings…
The R File
Glue between the world of Java and the world of resources
The R File
• Glue between the world of Java and the world
of resources
• Automatically generated file, and you never
modify it
• Recreated every time you change anything in
the res directory
Java Source Code
Is what drives everything
Java Source Code
• Is what drives everything
• Code that ultimately gets converted to a Dalvik
executable
Tehran's 1st Android bootcamp - Part1
Tehran's 1st Android bootcamp - Part1
The Emulator
• Is an actual code emulator
• It runs the same code base as the actual device
• Have to create an Android Virtual Device
(AVD), To use the emulator
Emulator vs. Simulator
• sound very similar, but are fundamentally
different
• To emulate means to imitate the machine
executing the binary code
• An emulator is sort of like a virtual machine
• A simulator merely simulates the behavior of
the code at a higher level
Android Virtual Device (AVD)
Android Virtual Device (AVD)
• Start the tool called Android SDK and AVD
Manager with in SDK folder
• Choose “New…”
• In Create New AVD dialog window, you must
specify some parameters for your new AVD
Android Virtual Device (AVD)
New AVD Dialog
• Name:
– can be any name you choose
• Device:
– Device that emulator look like
• Target:
– designates which version of Android
– based on platforms and add-ons downloaded and installed
• Keyboard
• Skin
• Front Camera
• Ram, Internal Storage, SD Card
Emulator with -Android 4.2.2 AVD
Let’s get to
work…

More Related Content

PPTX
Android ppt
vikramgopale2
 
PDF
Evolution of android operating system
Md. Abdullah Al Maruf
 
PPT
Android Programming Basic
Duy Do Phan
 
PDF
Android
Jindal Gohil
 
PDF
Android development - the basics, MFF UK, 2013
Tomáš Kypta
 
PPTX
Before starting android game development
Being Programmer
 
PPT
Android workShop
Srinivas Devarapalli
 
PPTX
The Android Story - versions and history
Devakumar Kp
 
Android ppt
vikramgopale2
 
Evolution of android operating system
Md. Abdullah Al Maruf
 
Android Programming Basic
Duy Do Phan
 
Android
Jindal Gohil
 
Android development - the basics, MFF UK, 2013
Tomáš Kypta
 
Before starting android game development
Being Programmer
 
Android workShop
Srinivas Devarapalli
 
The Android Story - versions and history
Devakumar Kp
 

What's hot (20)

PPT
Versions of android
Kartik Kalpande Patil
 
PPT
Android OS
Nitin Ramchandani
 
PPTX
Android application development ppt
Gautam Kumar
 
PPTX
Introduction to Andriod
Kaviarasu D
 
PPTX
Android ppt
Prasadbharatiyudu
 
PPT
Android PPT
Vivek Gautam
 
PPTX
History of android os from 1.0 to 9.0 pie
Xicom Technologies Ltd.
 
PDF
Android game development
milandinic
 
PPTX
Versions of Android OS
Haseeb
 
PPTX
Android Operating System
renoy reji
 
PPTX
Slideshare android
deepakkumargoyal
 
PPTX
Introduction to Android ppt
Taha Malampatti
 
KEY
Android Development: The Basics
Mike Desjardins
 
PDF
Introduction to Android development - Presentation Report
Atul Panjwani
 
PPTX
Presentation on android
sonyhontok
 
PPTX
Android Operating System
Bilal Mirza
 
PPTX
Introduction to Android
Murat Aydın
 
PPTX
Android mp3 player
Subhrajit Das
 
PPTX
AIDE - Android Integrated Development Environment presentation
BeMyApp
 
DOCX
Versions of android
Tarun Bamba
 
Versions of android
Kartik Kalpande Patil
 
Android OS
Nitin Ramchandani
 
Android application development ppt
Gautam Kumar
 
Introduction to Andriod
Kaviarasu D
 
Android ppt
Prasadbharatiyudu
 
Android PPT
Vivek Gautam
 
History of android os from 1.0 to 9.0 pie
Xicom Technologies Ltd.
 
Android game development
milandinic
 
Versions of Android OS
Haseeb
 
Android Operating System
renoy reji
 
Slideshare android
deepakkumargoyal
 
Introduction to Android ppt
Taha Malampatti
 
Android Development: The Basics
Mike Desjardins
 
Introduction to Android development - Presentation Report
Atul Panjwani
 
Presentation on android
sonyhontok
 
Android Operating System
Bilal Mirza
 
Introduction to Android
Murat Aydın
 
Android mp3 player
Subhrajit Das
 
AIDE - Android Integrated Development Environment presentation
BeMyApp
 
Versions of android
Tarun Bamba
 
Ad

Similar to Tehran's 1st Android bootcamp - Part1 (20)

PDF
Android By Vipin
Vipin Mundayad
 
PPT
Android Application Development Using Java
amaankhan
 
PPTX
PPT on Android
Subhadip Chakraborty
 
PPT
Google android os
Kirti Choudhary
 
PPTX
Android Breif introduction
NAVEENA ESWARAN
 
PPTX
Lecture_on_IntroductionToAndroidApp.pptx
ridzah12
 
PPTX
Introduction to android mobile app development.pptx
ridzah12
 
PPTX
Android OS
Serhan
 
PPTX
What is operating system
રજનીશ સિંહા
 
PPTX
What is operating system
રજનીશ સિંહા
 
PDF
Introduction to Android (Jeudis du libre)
cbeyls
 
PPT
Introduction to Android Environment
Compare Infobase Limited
 
PPTX
Introduction to android
zeelpatel0504
 
PPTX
Android Presentation
Saurabh Wahile
 
PPT
Getting started with android dev and test perspective
Gunjan Kumar
 
PPT
Android Applications Development (a Walkthrough)
Deuphil Kaufmann
 
PPT
Android Applications Development
Michael Angelo Rivera
 
PPT
Android
amitcoolbarik
 
PPTX
Android
Saral Das
 
PPTX
Android Development Workshop
Muthu Kumar
 
Android By Vipin
Vipin Mundayad
 
Android Application Development Using Java
amaankhan
 
PPT on Android
Subhadip Chakraborty
 
Google android os
Kirti Choudhary
 
Android Breif introduction
NAVEENA ESWARAN
 
Lecture_on_IntroductionToAndroidApp.pptx
ridzah12
 
Introduction to android mobile app development.pptx
ridzah12
 
Android OS
Serhan
 
What is operating system
રજનીશ સિંહા
 
What is operating system
રજનીશ સિંહા
 
Introduction to Android (Jeudis du libre)
cbeyls
 
Introduction to Android Environment
Compare Infobase Limited
 
Introduction to android
zeelpatel0504
 
Android Presentation
Saurabh Wahile
 
Getting started with android dev and test perspective
Gunjan Kumar
 
Android Applications Development (a Walkthrough)
Deuphil Kaufmann
 
Android Applications Development
Michael Angelo Rivera
 
Android
amitcoolbarik
 
Android
Saral Das
 
Android Development Workshop
Muthu Kumar
 
Ad

More from Mohsen Mirhoseini (8)

PDF
Functional Programming in Kotlin for Android Developers
Mohsen Mirhoseini
 
PDF
Top 10 Exception Handling best practices in Kotlin
Mohsen Mirhoseini
 
PDF
Rise from the Ashes: A Developer’s Phoenix Story
Mohsen Mirhoseini
 
PDF
How to set up Android Picture-in-picture mode? (a.k.a Floating window) + Best...
Mohsen Mirhoseini
 
PDF
Using protobuf in your android app
Mohsen Mirhoseini
 
PPT
Introduction to Unity3D Game Engine
Mohsen Mirhoseini
 
PPTX
Tehran's 2nd Android bootcamp
Mohsen Mirhoseini
 
PPTX
Tehran's 1st Android bootcamp - Part2
Mohsen Mirhoseini
 
Functional Programming in Kotlin for Android Developers
Mohsen Mirhoseini
 
Top 10 Exception Handling best practices in Kotlin
Mohsen Mirhoseini
 
Rise from the Ashes: A Developer’s Phoenix Story
Mohsen Mirhoseini
 
How to set up Android Picture-in-picture mode? (a.k.a Floating window) + Best...
Mohsen Mirhoseini
 
Using protobuf in your android app
Mohsen Mirhoseini
 
Introduction to Unity3D Game Engine
Mohsen Mirhoseini
 
Tehran's 2nd Android bootcamp
Mohsen Mirhoseini
 
Tehran's 1st Android bootcamp - Part2
Mohsen Mirhoseini
 

Recently uploaded (20)

PPTX
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PDF
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
PPTX
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 

Tehran's 1st Android bootcamp - Part1

  • 1. You’re Welcome to Tehran 1st Android Bootcamp
  • 3. Android Means an·droid /ˈanˌdroid/ Noun (in science fiction) A robot with a human appearance.
  • 4. Android… • Is an open source platform designed for mobiles devices under licenses (Apache/MIT) • Is based on the open Linux kernel – Portability: easy to compile on various hardware – Security: a highly secure system – Features: support for memory management, power management, and networking • Championed by Google • Separates the hardware from the software • Core is designed to be portable to run on all sorts of physical devices and screen size
  • 5. Android… • For Developers: – Provides all tools for developing mobile apps quickly and easily – Don’t even need a physical phone to start developing • For Users: – Can customize their phone experience • For Manufacturers: – Complete solution for running their devices – Other than some hardware-specific drivers, provides everything else to make their devices work.
  • 8. History • In 2005, Google buys Android, Inc. • Everything goes quiet for a while! • In 2007, the Open Handset Alliance is announced. Android is officially open sourced. • In 2008, the Android SDK 1.0 is released. The G1 phone, manufactured by HTC and sold by the wireless carrier T-Mobile USA, follows shortly afterward. • 2009 sees a proliferation of Android-based devices. New versions of the operating system are released: Cupcake (1.5), Donut (1.6), and Eclair (2.0 and 2.1). More than 20 devices run Android. • • In 2010, Android is second only to Blackberry as the best-selling smart phone platform. Froyo (Android 2.2) is released and so are more than 60 devices that run it.
  • 11. Android Versions Two Pre-commercial internal release versions (2007–2008) • Android alpha: – Released before 5 Nov 2007 – Code-named “Astro Boy”, “Bender”, “R2-D2” • Android beta: – Released on 5 Nov 2007 ~ 28 Sep 2008 – Code-named “m3-rc22a”, “m3-rc37a”, …
  • 12. Android Versions Cupcake 1.5 2009/04/30 • HTC Dream, the first Android device • Features: android market, web browser, camera support, gmail, Google contact, calendar, maps, sync, search, talk, media player, notification, voice dialer, you tube, …
  • 13. Android Versions Donut 1.6 2009/09/15 • based on Linux kernel 2.6.29 • Features: Voice and text entry search, Multilingual speech synthesis, faster camera access, technology support for CDMA/EVDO, 802.1x, VPNs, …
  • 14. Android Versions Éclair 2.0, 2.1 2009/10/29 • based on Linux kernel 2.6.29 • Features: Bluetooth 2.1 support, Camera flash support, digital zoom, scene mode, white balance, color effect and macro focus, live wallpapers, …
  • 15. Android Versions Froyo 2.2(frozen yogurt) 2010/05/20 • based on Linux kernel 2.6.32 • Speed, memory, and performance optimizations, Android Cloud to Device Messaging (C2DM), USB tethering and Wi-Fi hotspot, file upload fields in the Browser, Adobe Flash support, …
  • 16. Android Versions Gingerbread 2.3 2010/12/06 • based on Linux kernel 2.6.35 • Features: Switched from YAFFS to ext4, enhancements for game developers, Support for extra-large screen sizes and resolutions, …
  • 17. Android Versions Honeycomb 3.0 2011/02/22 • the first tablet-only Android update • Linux kernel 2.6.36 • First Tablet, Motorola Xoom • Features: Optimized tablet support, System Bar (notifications, status, and soft navigation buttons), Action Bar, Simplified multitasking, ...
  • 18. Android Versions IceCream Sandwich 4.0 2011/10/19 • based on Linux kernel 3.0.1 • compatible with any Android 2.3.x device • Features: Multiple user accounts , Face Unlock, Google Chrome browser, syncing users' Chrome bookmarks, …
  • 19. Android Versions Jelly Bean 4.2 2012/06/09 • based on Linux kernel 3.0.31 • improving functionality and performance of user interface. • the first device Nexus 7 tablet • Bi-directional text and other language support • Offline voice dictation
  • 22. Android Management Switch Up Andy Rubin, head of Android at Google, moved on to a new role at the company. Sundar Pichai (Pichai Sundarajan), head of Chrome and Apps, is now in charge of Android.
  • 23. Google's Android Statue Gets a Chrome Update • The new statue is mounted on Building 45 • perhaps some sort of Chrome-Android integration • But It Doesn’t Mean Anything!…
  • 24. Android Next Version • Google's "sweet" naming convention • Every major release since Cupcake has been named after a confection in alphabetical order • Cupcake > Donut > Eclair > Froyo > Gingerbread > Honeycomb > IceCream Sandwich > JellyBean > K...!
  • 25. Android Websites • www.android.com • developer.android.com • Play.google.com • www.stackoverflow.com • www.openhandsetalliance.com
  • 28. SDK: Android Software Development Kit http://developer.android.com/sdk/index.html
  • 29. Installing the Android ADT • Download ADT, unzip (or on Linux, untar) it into an easy access folder (for example) – Windows • C:appsandroid-adt-windows – Linux • /home/YourUserName/android-adt-linux_86 – Mac OS X • /Users/YourUserName/android-adt-mac_86 • For Windows strongly recommend directories without spaces
  • 32. Creating a New Project File→New→Project→Android Application Project
  • 33. Creating a New Project • In Eclipse choose, – File→New→Project→Android Application Project • Application Name: – The name of your application • Project Name: – Eclipse organizes everything into projects – project name should be one word and CamelCase • Package Name: – In Java, all source code is organized into packages – Your package name (reverse of your domain name)
  • 34. Creating a New Project • Minimum required SDK: – minimum version of Android that is required for the device to run this application • Target SDK: – tells the build tools which version of the Android platform you are building for • Compile with: – Typically the most recent version that support all API • Theme: – Base theme to user for application
  • 35. Configure Project New Android application→Next
  • 36. Configure New Project • Create custom launcher icon: – Check to use a simple icon creator • Create activity: – Check to use activity creator tool • Mark this project as library: – Check if you want to create a library project to use in other projects
  • 39. Android Project Important Parts • Manifest File • Layout XML Code • Strings • The R File • Java Source Code
  • 40. Manifest File • Glues everything together • Explains what the application consists of • What all its main building blocks are • What permissions it requires • What is the application name, application icon • What is package name, version Code & Name • …
  • 41. Layout XML Code XML file specifies the layout of your screen
  • 42. Layout XML Code • XML file specifies the layout of your screen – TextView – Spinner – Button – ImageView
  • 43. Strings XML file that contains all the text that your application uses
  • 44. Strings • XML file that contains all the text that your application uses: – names of buttons – labels – default text – and similar types of strings…
  • 45. The R File Glue between the world of Java and the world of resources
  • 46. The R File • Glue between the world of Java and the world of resources • Automatically generated file, and you never modify it • Recreated every time you change anything in the res directory
  • 47. Java Source Code Is what drives everything
  • 48. Java Source Code • Is what drives everything • Code that ultimately gets converted to a Dalvik executable
  • 51. The Emulator • Is an actual code emulator • It runs the same code base as the actual device • Have to create an Android Virtual Device (AVD), To use the emulator
  • 52. Emulator vs. Simulator • sound very similar, but are fundamentally different • To emulate means to imitate the machine executing the binary code • An emulator is sort of like a virtual machine • A simulator merely simulates the behavior of the code at a higher level
  • 54. Android Virtual Device (AVD) • Start the tool called Android SDK and AVD Manager with in SDK folder • Choose “New…” • In Create New AVD dialog window, you must specify some parameters for your new AVD
  • 56. New AVD Dialog • Name: – can be any name you choose • Device: – Device that emulator look like • Target: – designates which version of Android – based on platforms and add-ons downloaded and installed • Keyboard • Skin • Front Camera • Ram, Internal Storage, SD Card