Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Build Mobile Application In Android


Published on

Published in: Technology
  • Login to see the comments

Build Mobile Application In Android

  1. 1. Build mobile application in Android By: Savot Dane Email:
  2. 2. What Android? <ul><li>Google and the Open Handset Alliance, 2007 </li></ul><ul><li>Deploy by many mobile companies, SonyEricsson, HTC, LG, Motorola, Acer, Ramos, … </li></ul><ul><li>Mobile platform: Symbian, Window Mobile, iPhone OS, Java Mobile Edition, Linux Mobile(LiMo), … </li></ul>
  3. 3. Why Android? <ul><li>Open source and SDK. </li></ul><ul><li>Automatic memory management and application life circle. </li></ul><ul><li>A component-based architecture (mashups) </li></ul><ul><li>Tons of built-in services </li></ul><ul><li>High quality graphics, audio and video: 2D, 3D(OpenGL), Various codecs support </li></ul><ul><li>Portable platform: Linux Kernel and Optimized JVM (Dalvik) for Low Memory Requirement </li></ul>
  4. 4. Android System Architecture
  5. 5. Android System Architecture <ul><li>Home Application </li></ul>
  6. 6. How Android? <ul><li>Application Components </li></ul>A service doesn't have a visual user interface. Services (running in background) A class to use share data between applications. Data can be store in text file, SQLite db,.. Content provider (data wrapper) A user interface screen Activity (UI) A mechanism for describing a specific action. Intent (action) 1 application can have 1 or more Activities Application (program)
  7. 7. How Android? <ul><li>How Applications Work? </li></ul>Window
  8. 8. How Android? <ul><li>How Applications Work? </li></ul>Android Home App1 Act2 Act3 Act4 Act1 Act1 Act2 Act3 Act4
  9. 9. How Android? <ul><li>Life cycle of an Android activity </li></ul>
  10. 10. How Android? <ul><li>Activity Events </li></ul>If this method is called, it indicates your activity is being redisplayed to the user from a stopped state. onRestart Called right before your activity is destroyed. onDestroy called when activity is no longer visible to the user for a while. onStop Called when the activity is about to go into the background. onPause The activity is about to be displayed to the user. onStart Called when your activity can start interacting with the user. Place to start animations and music. onResume Called when the activity first starts up. Place where to create user interface onCreate
  11. 11. How Android? <ul><li>Prepare for Development </li></ul> Android Eclipse Plug-In Update via Android SDK and AVG Manager Android Platform SDK 1.5, 1.6, 2.0, 2.01, 2.1 Eclipse Android SDK Java JDK 5.0+
  12. 12. How Android? <ul><li>DEMO </li></ul>
  13. 13. Measurement UI Design • px (pixels): Dots on the screen. • in (inches): Size as measured by a ruler. • mm (millimeters): Size as measured by a ruler. • pt (points): 1/72 of an inch. • dp (density-independent pixels): An abstract unit based on the density of the screen. On a display with 160 dots per inch, 1dp = 1px. • dip: Synonymfor dp, usedmore often in Google examples. • sp (scale-independent pixels): Similar to dp but also scaled by the user’s font size preference.
  14. 14. References <ul><li>Hellow Android by Ed Burnette, Nov 2009 </li></ul><ul><li> </li></ul><ul><li> </li></ul>Brought to you by: SharevisionTeam