Build mobile application in Android By: Savot Dane Email: firstname.lastname@example.org
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>
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>
Android System Architecture <ul><li>Home Application </li></ul>
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)
How Android? <ul><li>How Applications Work? </li></ul>Window
How Android? <ul><li>How Applications Work? </li></ul>Android Home App1 Act2 Act3 Act4 Act1 Act1 Act2 Act3 Act4
How Android? <ul><li>Life cycle of an Android activity </li></ul>
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
How Android? <ul><li>Prepare for Development </li></ul>https://dl-ssl.google.com/android/eclipse/ http://dl-ssl.google.com/android/eclipse/ Android Eclipse Plug-In Update via Android SDK and AVG Manager Android Platform SDK 1.5, 1.6, 2.0, 2.01, 2.1 http://www.eclipse.org/downloads Eclipse http://d.android.com/sdk Android SDK http://java.sun.com/javase/downloads Java JDK 5.0+
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.
References <ul><li>Hellow Android by Ed Burnette, Nov 2009 </li></ul><ul><li>http://developer.android.com/guide/index.html </li></ul><ul><li>http://android-developers.blogspot.com </li></ul>Brought to you by: SharevisionTeam
A particular slide catching your eye?
Clipping is a handy way to collect important slides you want to go back to later.