SlideShare una empresa de Scribd logo
1 de 58
You’re Welcome to
Tehran 1st
Android Bootcamp
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.
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.
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
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
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
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
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
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…

Más contenido relacionado

La actualidad más candente

Android application development ppt
Android application development pptAndroid application development ppt
Android application development pptGautam Kumar
 
Introduction to Andriod
Introduction to AndriodIntroduction to Andriod
Introduction to AndriodKaviarasu D
 
History of android os from 1.0 to 9.0 pie
History of android os   from 1.0 to 9.0 pieHistory of android os   from 1.0 to 9.0 pie
History of android os from 1.0 to 9.0 pieXicom Technologies Ltd.
 
Android game development
Android game developmentAndroid game development
Android game developmentmilandinic
 
Versions of Android OS
Versions of Android OSVersions of Android OS
Versions of Android OSHaseeb
 
Android Operating System
Android Operating SystemAndroid Operating System
Android Operating Systemrenoy reji
 
Introduction to Android ppt
Introduction to Android pptIntroduction to Android ppt
Introduction to Android pptTaha Malampatti
 
Android Development: The Basics
Android Development: The BasicsAndroid Development: The Basics
Android Development: The BasicsMike Desjardins
 
Introduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportIntroduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportAtul Panjwani
 
Presentation on android
Presentation on androidPresentation on android
Presentation on androidsonyhontok
 
Android Operating System
Android Operating SystemAndroid Operating System
Android Operating SystemBilal Mirza
 
Introduction to Android
Introduction to AndroidIntroduction to Android
Introduction to AndroidMurat Aydın
 
AIDE - Android Integrated Development Environment presentation
AIDE - Android Integrated Development Environment presentationAIDE - Android Integrated Development Environment presentation
AIDE - Android Integrated Development Environment presentationBeMyApp
 
Versions of android
Versions of androidVersions of android
Versions of androidTarun Bamba
 

La actualidad más candente (20)

Versions of android
Versions of androidVersions of android
Versions of android
 
Android OS
Android OSAndroid OS
Android OS
 
Android application development ppt
Android application development pptAndroid application development ppt
Android application development ppt
 
Introduction to Andriod
Introduction to AndriodIntroduction to Andriod
Introduction to Andriod
 
Android ppt
Android pptAndroid ppt
Android ppt
 
Android PPT
Android PPTAndroid PPT
Android PPT
 
History of android os from 1.0 to 9.0 pie
History of android os   from 1.0 to 9.0 pieHistory of android os   from 1.0 to 9.0 pie
History of android os from 1.0 to 9.0 pie
 
Android game development
Android game developmentAndroid game development
Android game development
 
Versions of Android OS
Versions of Android OSVersions of Android OS
Versions of Android OS
 
Android Operating System
Android Operating SystemAndroid Operating System
Android Operating System
 
Slideshare android
Slideshare androidSlideshare android
Slideshare android
 
Introduction to Android ppt
Introduction to Android pptIntroduction to Android ppt
Introduction to Android ppt
 
Android Development: The Basics
Android Development: The BasicsAndroid Development: The Basics
Android Development: The Basics
 
Introduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportIntroduction to Android development - Presentation Report
Introduction to Android development - Presentation Report
 
Presentation on android
Presentation on androidPresentation on android
Presentation on android
 
Android Operating System
Android Operating SystemAndroid Operating System
Android Operating System
 
Introduction to Android
Introduction to AndroidIntroduction to Android
Introduction to Android
 
Android mp3 player
Android mp3 playerAndroid mp3 player
Android mp3 player
 
AIDE - Android Integrated Development Environment presentation
AIDE - Android Integrated Development Environment presentationAIDE - Android Integrated Development Environment presentation
AIDE - Android Integrated Development Environment presentation
 
Versions of android
Versions of androidVersions of android
Versions of android
 

Similar a Tehran's 1st Android bootcamp - Part1

Android presantation
Android presantationAndroid presantation
Android presantationUdayJethva
 
Android (Types, Feature,Application etc..)
Android (Types, Feature,Application etc..)Android (Types, Feature,Application etc..)
Android (Types, Feature,Application etc..)Coder Tech
 
Vijay android ppt
Vijay android pptVijay android ppt
Vijay android pptvijaymashre
 
Android Seminar || history || versions||application developement
Android Seminar || history || versions||application developement Android Seminar || history || versions||application developement
Android Seminar || history || versions||application developement Shubham Pahune
 
Android Operating System
Android Operating SystemAndroid Operating System
Android Operating SystemBilal Mirza
 
Basics of Android and Android development environment
Basics of Android and Android development environment Basics of Android and Android development environment
Basics of Android and Android development environment Ajay Panchal
 
1319571 634635606205391250
1319571 6346356062053912501319571 634635606205391250
1319571 634635606205391250MadNor Exe
 

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

Android : Deep dive into developing MobileApp using Android
Android : Deep dive into developing MobileApp using AndroidAndroid : Deep dive into developing MobileApp using Android
Android : Deep dive into developing MobileApp using Android
 
Android presantation
Android presantationAndroid presantation
Android presantation
 
Aandroid
AandroidAandroid
Aandroid
 
Android
AndroidAndroid
Android
 
01 03 - introduction to android
01  03 - introduction to android01  03 - introduction to android
01 03 - introduction to android
 
Android report.
Android report.Android report.
Android report.
 
Android (Types, Feature,Application etc..)
Android (Types, Feature,Application etc..)Android (Types, Feature,Application etc..)
Android (Types, Feature,Application etc..)
 
Vijay android ppt
Vijay android pptVijay android ppt
Vijay android ppt
 
Android Seminar || history || versions||application developement
Android Seminar || history || versions||application developement Android Seminar || history || versions||application developement
Android Seminar || history || versions||application developement
 
My androidpresentation
My androidpresentationMy androidpresentation
My androidpresentation
 
Android Programming
Android ProgrammingAndroid Programming
Android Programming
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android technology
Android technology Android technology
Android technology
 
Android
AndroidAndroid
Android
 
android
androidandroid
android
 
Android Presentation
Android PresentationAndroid Presentation
Android Presentation
 
Android Operating System
Android Operating SystemAndroid Operating System
Android Operating System
 
Basics of Android and Android development environment
Basics of Android and Android development environment Basics of Android and Android development environment
Basics of Android and Android development environment
 
1319571 634635606205391250
1319571 6346356062053912501319571 634635606205391250
1319571 634635606205391250
 
Android
AndroidAndroid
Android
 

Último

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 

Último (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

Tehran's 1st Android bootcamp - Part1

  • 1. You’re Welcome to Tehran 1st Android Bootcamp
  • 2.
  • 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.
  • 6.
  • 7.
  • 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.
  • 9.
  • 10.
  • 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
  • 20.
  • 21.
  • 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
  • 26.
  • 27.
  • 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
  • 30.
  • 31.
  • 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
  • 37.
  • 38.
  • 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
  • 49.
  • 50.
  • 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