Android


Presentation of mobile platform
Index

• Introduction to android

• Development enviroment

• Building blocks

• Performance
Introduction to android

• What is android ?

• Android – J2ME - iPhone

• Features
What is android ?

• Android literally means “Robot with human
  qualities”
• First open source mobile platform
• Software...
Android linux kernel

• Android is not linux
• Based on linux 2.6, providing
   –   Security
   –   Memory managment
   – ...
Unique platform characteristics

•   Open source
•   Android market
•   “all applications are equal” model
•   Dalvik virt...
Arhitecture
Android - J2ME – iPhone

                Android     J2ME           iPhone
                           J2ME or Java   Objec...
Features

•   Localization
•   Widgets
•   Security
•   Animations
•   Multimedia
•   Customization
•   Compas
•   OpenGL ...
Localization

• GoogleMaps

• StreetView

• Language localization
Google Maps

• External library
  (com.google.android.maps)
• Maps API Key
• Routing in 2.1
StreetView

• 3D view
• Virtual look of city
Localization

• Default resources
• Done without programming
  – res/values/strings.xml
  – res/values-fr/strings.xml
• De...
Widgets

• Home screen
• Most important or
  timely information
• Provided standard
  design
Security and permissions

• AndroidManifest.xml
  – Control file

  – “Glue” together Activitys

  – Specifies permissions
Animations

•   In/Out animations
•   Alpha-transparency
•   Rotate
•   Scale
•   Translate
•   Combination of all 4
Audio and video
                  • Playback
                    – MediaPlayer

                  • Recording
            ...
Bluetooth

•   Network stack for data exchange
•   Scan other devices
•   Establish RFCOMM channels
•   Connect via servic...
Style and themes

• Defined in resources

• Changing between themes

• Runtime change
Screen orientation

• Live change
• Landscape / portrait
Development enviroment

• Eclipse

• Plug-ins

• Emulator
Eclipse

Eclipse is an extensible development platform

                  • Extended with plug-ins
                  • Lig...
Plug-ins

• Android SDK
  –   Platforms
  –   Add-ons
  –   Tools
  –   API-documentation
• Android ADT
  – ADT- Android D...
Emulator

• Ability to
   – Prototype
   – Develop
   – Test
• AVD configurations
• Debuging
Google applications

• Android browser

• Android dialer
Custom components

•   Fundamental classes View and ViewGroup
•   Button, TextView, EditText ...
•   Own View subclass
•  ...
Activities



     Views
                                         Building blocks




    Intents



    Services



  Not...
Activities

• Stacked like a deck
  of cards
• Only one is visible
• Ony one is active
• New activities are
   placed at t...
Activities lifecyle




   Rectangles are callbacks where
   we can implement operations
   performed on state changes
Activities states
• Active
   – At the top of the stack
• Paused
   – Lost focus but still visible
   – Can be killed
• St...
Views

•   Basic class for UI components
•   Respond to events
•   Described in XML in layout resources
•   Organized as t...
Intent

•   Used to move between Activities
•   Describes what the application wants
•   Provides late runtime binding
•  ...
Services

•   Run in background
•   Don’t interact with the user
•   Run on the main thread of the process
•   Run as long...
Notifications

• Notify user about events
• Sent through NotificationManager
• Types
  – Persistent icon
  – Turning leds
...
Content provider

• Objects that can
    – Retrieve data
    – Store data
•   Data is available to all applications
•   On...
Android key points

• Open source platform
• Android Apps Market
• Google Power Products
   – Google voice
   – Google map...
Primož Fideršek
 Software engineer

 info@tridens.si
 www.tridens.si



Copyright (c) 2010 Tridens d.o.o. All rights reser...
Upcoming SlideShare
Loading in...5
×

Android Mobile Platform

1,115

Published on

Published in: Technology, Business
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total Views
1,115
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
76
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Android Mobile Platform

  1. 1. Android Presentation of mobile platform
  2. 2. Index • Introduction to android • Development enviroment • Building blocks • Performance
  3. 3. Introduction to android • What is android ? • Android – J2ME - iPhone • Features
  4. 4. What is android ? • Android literally means “Robot with human qualities” • First open source mobile platform • Software stack – Operating system – Middleware – Key applications – Rich set of APIs
  5. 5. Android linux kernel • Android is not linux • Based on linux 2.6, providing – Security – Memory managment – Process managment – Network stack – Driver model – Abstraction layer
  6. 6. Unique platform characteristics • Open source • Android market • “all applications are equal” model • Dalvik virtual mashine Optimized for mobile
  7. 7. Arhitecture
  8. 8. Android - J2ME – iPhone Android J2ME iPhone J2ME or Java Objective C or Foundation Java FX Java App store Distribution Market Free Hype SDK cost Free Free Free Performance Average Average Best
  9. 9. Features • Localization • Widgets • Security • Animations • Multimedia • Customization • Compas • OpenGL ES
  10. 10. Localization • GoogleMaps • StreetView • Language localization
  11. 11. Google Maps • External library (com.google.android.maps) • Maps API Key • Routing in 2.1
  12. 12. StreetView • 3D view • Virtual look of city
  13. 13. Localization • Default resources • Done without programming – res/values/strings.xml – res/values-fr/strings.xml • Depends on locale setting on phone
  14. 14. Widgets • Home screen • Most important or timely information • Provided standard design
  15. 15. Security and permissions • AndroidManifest.xml – Control file – “Glue” together Activitys – Specifies permissions
  16. 16. Animations • In/Out animations • Alpha-transparency • Rotate • Scale • Translate • Combination of all 4
  17. 17. Audio and video • Playback – MediaPlayer • Recording – MediaRecorder • JET content
  18. 18. Bluetooth • Network stack for data exchange • Scan other devices • Establish RFCOMM channels • Connect via service discovery • Manage multiple connections
  19. 19. Style and themes • Defined in resources • Changing between themes • Runtime change
  20. 20. Screen orientation • Live change • Landscape / portrait
  21. 21. Development enviroment • Eclipse • Plug-ins • Emulator
  22. 22. Eclipse Eclipse is an extensible development platform • Extended with plug-ins • Lightweight plug-ins • Common used IDE • Emulator
  23. 23. Plug-ins • Android SDK – Platforms – Add-ons – Tools – API-documentation • Android ADT – ADT- Android Development Tools – Accesing DDMS tool
  24. 24. Emulator • Ability to – Prototype – Develop – Test • AVD configurations • Debuging
  25. 25. Google applications • Android browser • Android dialer
  26. 26. Custom components • Fundamental classes View and ViewGroup • Button, TextView, EditText ... • Own View subclass • Attributes and parameters from XML
  27. 27. Activities Views Building blocks Intents Services Notifications AndroidManifest.xml ContentProviders
  28. 28. Activities • Stacked like a deck of cards • Only one is visible • Ony one is active • New activities are placed at top
  29. 29. Activities lifecyle Rectangles are callbacks where we can implement operations performed on state changes
  30. 30. Activities states • Active – At the top of the stack • Paused – Lost focus but still visible – Can be killed • Stopped – Not at the top of the stack • Dropped – Killed to reclaim its memory
  31. 31. Views • Basic class for UI components • Respond to events • Described in XML in layout resources • Organized as trees to build up GUIs
  32. 32. Intent • Used to move between Activities • Describes what the application wants • Provides late runtime binding • Primary information – Action ( ACTION_VIEW, ACTION_EDIT...) – Data ( Data to operate on expressed as Uri)
  33. 33. Services • Run in background • Don’t interact with the user • Run on the main thread of the process • Run as long as – Is started – Has connections
  34. 34. Notifications • Notify user about events • Sent through NotificationManager • Types – Persistent icon – Turning leds – Sound or vibration
  35. 35. Content provider • Objects that can – Retrieve data – Store data • Data is available to all applications • Only way to share data between packages • Usually the backend is SQLite • Data exposed as a unique URI
  36. 36. Android key points • Open source platform • Android Apps Market • Google Power Products – Google voice – Google maps • Rapidly increasing market share
  37. 37. Primož Fideršek Software engineer info@tridens.si www.tridens.si Copyright (c) 2010 Tridens d.o.o. All rights reserved. Logotype is a registered trademark of Tridens d.o.o. All other names/logos may be registered trademarks of their respective owners. 37
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×