SlideShare a Scribd company logo
Hello Android! PuneGTUG on 6 th  June, 2009 by Sushrut Bidwai Copyright © 2008 Wissen Systems. All rights reserved
Agenda Brief history of Android Android phones Android experiments What is Android? What's in new SDK? Android architecture in detail Application fundamentals User interface Resources and assets Data storage Content providers Security and permissions Developing with Eclipse First Android application Copyright © 2008 Wissen Systems. All rights reserved
Brief history of Android Developed by a small unknown company, Android Inc Google acquired this company in 2005 Later Google opened up to form, Open handset alliance (OHA) OHA consists of Google HTC T-mobile Sprint China mobile, Telecom Italia etc Vodafone, LG, Samsung, Motorola ARM, Intel Many others Copyright © 2008 Wissen Systems. All rights reserved
Android phones T-Mobile G1 or HTC Dream, first mobile with Android. HTC Magic HKC Pearl HKC Imobile Samsung launching a new mobile with Android Copyright © 2008 Wissen Systems. All rights reserved
What is Android? Software stack, not an operating system Linux is the operating system under Android Provides application programming interface through Java/Dalvik virtual machine (DVM) Dalvik hides OS complexities from app programmer, who can write apps in (best programming language :-) ) Java Jxyz can be ported, or already ported, to run on DVM Provides utilities and libraries like modern web browser, media support, GSM telephony and lot of other things like OpenGL, Location support. My thoughts – Android is Linux based platform, customized to run on mobile/handheld devices which have limited processing power and memory. These devices will run many apps/utilities, one of them being GSM telephony. Ideal target for Netbooks Copyright © 2008 Wissen Systems. All rights reserved
What's new SDK? Latest version available is 1.5, known as cupcake.  Rumours already loud about donut release ie 2.0, with which LOT of new handsets are expected to come Features for programmer - Locale support Media framework api changes Application defined hardware requirements Speech recognition Lot of other smaller changes Copyright © 2008 Wissen Systems. All rights reserved
Android architecture Copyright © 2008 Wissen Systems. All rights reserved
Android architecture details Linux kernel Version 2.6, currently used Provides abstraction layer between hardware and rest of the stack Security, memory management, process management, network stack, driver model Libraries Libc port variants Media libraries for audio, video, images Surface manager for touch screen LibWebCore, modern web browser SGL, 2D graphics engine FreeType, bitmap and vector fonts SQLite   Copyright © 2008 Wissen Systems. All rights reserved
Android architecture details... Android runtime DVM and core libraries Every android process runs its own process and VM instance DVM optimized to run multiple Vms efficiently .dex format for minimal memory footprint Depends on kernel for threading, low level memory management etc Application framework Typical framework, which makes writing apps easier Applications All applications including, apps packaged with android platform All apps are equal Copyright © 2008 Wissen Systems. All rights reserved
Application fundamentals AndroidManifest.xml Written as Java applications Applications live in their own world, separate process, VM, userId Ways to share userId Folder structure Components Activities Services Broadcast receivers Content providers Again all applications are equal Copyright © 2008 Wissen Systems. All rights reserved
Activity Presents visual interface Each user interface is separate activity. Implemented by subclassing Activity class Modal dialogs and floating activities Activity state Droiddraw and hierarchyviewer Copyright © 2008 Wissen Systems. All rights reserved
Service Background processes Works when user is using some other app. Long living component Implemented by subclassing Service class Requires intent to activate Registered in androidmanifest.xml Bound services, not long living, lives through the context only Communication with bound services through serviceconnection Services run in app process, can be setup to run in their own process Communication with remote process through AIDL. (Corba/RMI like) Permissions can be setup in manifest file Copyright © 2008 Wissen Systems. All rights reserved
Broadcast Receiver Event handling, also known as intent receiver All communication is managed through intents Extends  BroadcastReceiver  class to implement Entry in manifest or dynamically registered through context class Broadcast intent with  sendBroadCast  or  sendOrderedBroadCast Permissions very important, specially for platform developers. Copyright © 2008 Wissen Systems. All rights reserved
Content providers Way of sharing data between processes/apps Remember – each app data is stored separately and lost after app is uninstalled. A content provider class implements standard set of methods to expose its app data to be used/consumed/created by other apps Supports CRUD operations Standard content providers, like contacts, files, media library provided in platform through core applications REST like implementation where every data object is a URI Copyright © 2008 Wissen Systems. All rights reserved
Broadcast Receiver Event handling, also known as intent receiver All communication is managed through intents Extends  BroadcastReceiver  class to implement Entry in manifest or dynamically registered through context class Broadcast intent with  sendBroadCast  or  sendOrderedBroadCast Permissions very important, specially for platform developers. Copyright © 2008 Wissen Systems. All rights reserved
User Interface Built using View and ViewGroup Activities UI is constricted using nodes of View and ViewGroup object Widget – A View object which serves as interaction with user. Buttons etc UI Events are handled using EventListners like onTouchListner, onClickListner Menu – are also defined using View hierarchy, but programmer doesn't define own structure. Menu also have their own event handling callbacks Copyright © 2008 Wissen Systems. All rights reserved
Resources and Assets Resources and assets are external elements that you want use and reference in your application Examples – Audio, Video, Images etc Resources are available through R class, compiled by Android Assets are accessible through AssetManager as byte streams  Standard set of resources are available to reference in your application Copyright © 2008 Wissen Systems. All rights reserved
Thank you! P lease send your feedback to  [email_address] Copyright © 2008 Wissen Systems. All rights reserved

More Related Content

PPT
Android basics
PPTX
Getting started with android
PPTX
Android basics
PDF
Ch1 hello, android
PPTX
Basic of Android App Development
PPT
Android primer
PPT
SynapseIndia mobile build apps management
PDF
Android Basics
Android basics
Getting started with android
Android basics
Ch1 hello, android
Basic of Android App Development
Android primer
SynapseIndia mobile build apps management
Android Basics

What's hot (20)

DOCX
Android architecture
PPT
Introduction to Android
PDF
Android : Architecture & Components
PPTX
Android before getting started
PPT
android-tutorial-for-beginner
PPTX
Android basic principles
PPTX
An introduction on Android OS, its working and android development
PDF
Android Platform Architecture
PPTX
Android Training (Media)
PPTX
Introduction to android
PPT
Introduction to Java ME Mobile Development
PDF
Eclipse Mobile Tools for Java Project
PPT
Sdk technology
PPT
Android My Seminar
PDF
An introduction on Android OS, its working and android development
PPT
Android application development
PPTX
Android summer training report
PPT
MTJ Taking Mobile Java Developers to the Next Level
PDF
Android By Vipin
DOCX
Android..overwiew
Android architecture
Introduction to Android
Android : Architecture & Components
Android before getting started
android-tutorial-for-beginner
Android basic principles
An introduction on Android OS, its working and android development
Android Platform Architecture
Android Training (Media)
Introduction to android
Introduction to Java ME Mobile Development
Eclipse Mobile Tools for Java Project
Sdk technology
Android My Seminar
An introduction on Android OS, its working and android development
Android application development
Android summer training report
MTJ Taking Mobile Java Developers to the Next Level
Android By Vipin
Android..overwiew
Ad

Viewers also liked (6)

PDF
Testimonials mbs mba consulting
PPT
06 рисование (w2_d12)2
PDF
130122 geofilet coco aiguilleté 350g
PPT
How I automated sales?
PDF
Android Aula 3
PDF
Expert systema hr back office-учет рабочего времени и отпусков-свобода-vs-зак...
Testimonials mbs mba consulting
06 рисование (w2_d12)2
130122 geofilet coco aiguilleté 350g
How I automated sales?
Android Aula 3
Expert systema hr back office-учет рабочего времени и отпусков-свобода-vs-зак...
Ad

Similar to Hello Android - Pune GTUG (20)

PPTX
Android quick talk
PDF
Android fundamentals and tutorial for beginners
PPT
Android Anatomy
PPT
My androidpresentation
PPTX
Introduction to Android (before 2015)
PPT
Mobile appliaction w android week 1 by osama
PDF
Android Workshop Part 1
PPTX
Android- Introduction for Beginners
PPTX
Android Technology
PPTX
Android Presentation
DOCX
Introduction%20of%20android
PDF
Android and its feature
PDF
Matteo Gazzurelli - Andorid introduction - Google Dev Fest 2013
ODP
Nativa Android Applications development
DOC
Google android white paper
PPTX
18ITT61 - Introduction.pptx
PPT
Introduction to Android.ppt
PDF
Slides bootcamp21
PPTX
Android 1-intro n architecture
PDF
Google Android @ AlphaCSP's JavaEdge
Android quick talk
Android fundamentals and tutorial for beginners
Android Anatomy
My androidpresentation
Introduction to Android (before 2015)
Mobile appliaction w android week 1 by osama
Android Workshop Part 1
Android- Introduction for Beginners
Android Technology
Android Presentation
Introduction%20of%20android
Android and its feature
Matteo Gazzurelli - Andorid introduction - Google Dev Fest 2013
Nativa Android Applications development
Google android white paper
18ITT61 - Introduction.pptx
Introduction to Android.ppt
Slides bootcamp21
Android 1-intro n architecture
Google Android @ AlphaCSP's JavaEdge

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Machine learning based COVID-19 study performance prediction
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectral efficient network and resource selection model in 5G networks
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Approach and Philosophy of On baking technology
Encapsulation_ Review paper, used for researhc scholars
Understanding_Digital_Forensics_Presentation.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectroscopy.pptx food analysis technology
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Review of recent advances in non-invasive hemoglobin estimation
Digital-Transformation-Roadmap-for-Companies.pptx
Unlocking AI with Model Context Protocol (MCP)
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Network Security Unit 5.pdf for BCA BBA.
Machine learning based COVID-19 study performance prediction

Hello Android - Pune GTUG

  • 1. Hello Android! PuneGTUG on 6 th June, 2009 by Sushrut Bidwai Copyright © 2008 Wissen Systems. All rights reserved
  • 2. Agenda Brief history of Android Android phones Android experiments What is Android? What's in new SDK? Android architecture in detail Application fundamentals User interface Resources and assets Data storage Content providers Security and permissions Developing with Eclipse First Android application Copyright © 2008 Wissen Systems. All rights reserved
  • 3. Brief history of Android Developed by a small unknown company, Android Inc Google acquired this company in 2005 Later Google opened up to form, Open handset alliance (OHA) OHA consists of Google HTC T-mobile Sprint China mobile, Telecom Italia etc Vodafone, LG, Samsung, Motorola ARM, Intel Many others Copyright © 2008 Wissen Systems. All rights reserved
  • 4. Android phones T-Mobile G1 or HTC Dream, first mobile with Android. HTC Magic HKC Pearl HKC Imobile Samsung launching a new mobile with Android Copyright © 2008 Wissen Systems. All rights reserved
  • 5. What is Android? Software stack, not an operating system Linux is the operating system under Android Provides application programming interface through Java/Dalvik virtual machine (DVM) Dalvik hides OS complexities from app programmer, who can write apps in (best programming language :-) ) Java Jxyz can be ported, or already ported, to run on DVM Provides utilities and libraries like modern web browser, media support, GSM telephony and lot of other things like OpenGL, Location support. My thoughts – Android is Linux based platform, customized to run on mobile/handheld devices which have limited processing power and memory. These devices will run many apps/utilities, one of them being GSM telephony. Ideal target for Netbooks Copyright © 2008 Wissen Systems. All rights reserved
  • 6. What's new SDK? Latest version available is 1.5, known as cupcake. Rumours already loud about donut release ie 2.0, with which LOT of new handsets are expected to come Features for programmer - Locale support Media framework api changes Application defined hardware requirements Speech recognition Lot of other smaller changes Copyright © 2008 Wissen Systems. All rights reserved
  • 7. Android architecture Copyright © 2008 Wissen Systems. All rights reserved
  • 8. Android architecture details Linux kernel Version 2.6, currently used Provides abstraction layer between hardware and rest of the stack Security, memory management, process management, network stack, driver model Libraries Libc port variants Media libraries for audio, video, images Surface manager for touch screen LibWebCore, modern web browser SGL, 2D graphics engine FreeType, bitmap and vector fonts SQLite Copyright © 2008 Wissen Systems. All rights reserved
  • 9. Android architecture details... Android runtime DVM and core libraries Every android process runs its own process and VM instance DVM optimized to run multiple Vms efficiently .dex format for minimal memory footprint Depends on kernel for threading, low level memory management etc Application framework Typical framework, which makes writing apps easier Applications All applications including, apps packaged with android platform All apps are equal Copyright © 2008 Wissen Systems. All rights reserved
  • 10. Application fundamentals AndroidManifest.xml Written as Java applications Applications live in their own world, separate process, VM, userId Ways to share userId Folder structure Components Activities Services Broadcast receivers Content providers Again all applications are equal Copyright © 2008 Wissen Systems. All rights reserved
  • 11. Activity Presents visual interface Each user interface is separate activity. Implemented by subclassing Activity class Modal dialogs and floating activities Activity state Droiddraw and hierarchyviewer Copyright © 2008 Wissen Systems. All rights reserved
  • 12. Service Background processes Works when user is using some other app. Long living component Implemented by subclassing Service class Requires intent to activate Registered in androidmanifest.xml Bound services, not long living, lives through the context only Communication with bound services through serviceconnection Services run in app process, can be setup to run in their own process Communication with remote process through AIDL. (Corba/RMI like) Permissions can be setup in manifest file Copyright © 2008 Wissen Systems. All rights reserved
  • 13. Broadcast Receiver Event handling, also known as intent receiver All communication is managed through intents Extends BroadcastReceiver class to implement Entry in manifest or dynamically registered through context class Broadcast intent with sendBroadCast or sendOrderedBroadCast Permissions very important, specially for platform developers. Copyright © 2008 Wissen Systems. All rights reserved
  • 14. Content providers Way of sharing data between processes/apps Remember – each app data is stored separately and lost after app is uninstalled. A content provider class implements standard set of methods to expose its app data to be used/consumed/created by other apps Supports CRUD operations Standard content providers, like contacts, files, media library provided in platform through core applications REST like implementation where every data object is a URI Copyright © 2008 Wissen Systems. All rights reserved
  • 15. Broadcast Receiver Event handling, also known as intent receiver All communication is managed through intents Extends BroadcastReceiver class to implement Entry in manifest or dynamically registered through context class Broadcast intent with sendBroadCast or sendOrderedBroadCast Permissions very important, specially for platform developers. Copyright © 2008 Wissen Systems. All rights reserved
  • 16. User Interface Built using View and ViewGroup Activities UI is constricted using nodes of View and ViewGroup object Widget – A View object which serves as interaction with user. Buttons etc UI Events are handled using EventListners like onTouchListner, onClickListner Menu – are also defined using View hierarchy, but programmer doesn't define own structure. Menu also have their own event handling callbacks Copyright © 2008 Wissen Systems. All rights reserved
  • 17. Resources and Assets Resources and assets are external elements that you want use and reference in your application Examples – Audio, Video, Images etc Resources are available through R class, compiled by Android Assets are accessible through AssetManager as byte streams Standard set of resources are available to reference in your application Copyright © 2008 Wissen Systems. All rights reserved
  • 18. Thank you! P lease send your feedback to [email_address] Copyright © 2008 Wissen Systems. All rights reserved