If you can't read please download the document
Upload
peterbuck
View
1.823
Download
2
Embed Size (px)
Citation preview
2. 6/30/09 Open Handset Alliance Allianceof 47 companies Technology leaders Why Google, Asus, Sprint, LG, Android ?Sony Ericson Goals Being better For consumers Being open For developers Achieving the vision For mobile operator, handset manufacturersAndroid, a Linux-based Mobile Phone Operating System Android, a Linux-based Mobile Phone Operating System So, Android ? Whats the result ? Thefirst open, free and complete stack for mobile 13 news model announced before Christmas ! phone ! Open Fast & easyAll applications application are createddevelopmentequal Breaking downapplicationboundariesAndroid, a Linux-based Mobile Phone Operating System Android, a Linux-based Mobile Phone Operating System 2 3. 6/30/09 Whats the result ? The Marketplace Stores Android applications http://www.android.com/market/ From any Android phone Free publication ! Develop, Sign and Publishyour application for free Growth very quickly Android, a Linux-based Mobile Phone Operating System Android, a Linux-based Mobile Phone Operating System Some application examples Whats under the cover?Android, a Linux-based Mobile Phone Operating System Android, a Linux-based Mobile Phone Operating System3 4. 6/30/09 The Kernel Whats Linux 2.6 based Provides hardware management inside ? File system Network 3G, Edge, Wifi, Bluetooth Camera Keyboard Power Thats critical ! Android, a Linux-based Mobile Phone Operating SystemAndroid, a Linux-based Mobile Phone Operating System Libraries Libraries Graphics Database Webkit OpenGL, Scalable Image, Animations SQLite CSS 3 Media Security Uses Google Chrome Images (.png, .jpeg, .gif, .bmp) SSL Animations, Masks Video (.mp4, .3gp .wmv) Audio (.mp3, .mp4, .3gp, .ogg, .wav, .wma )Android, a Linux-based Mobile Phone Operating SystemAndroid, a Linux-based Mobile Phone Operating System 4 5. 6/30/09 Runtime Application Framework Dalvik Functionalities managed by the system, A virtual machine executing applications But usable by your applications Java development language Java 5 (Generics, Annotations ) Examples All applications run on the top of their own Dalvik instance Get the current location Provides some libraries such as Calling, Sending an text message, get contacts HTTPClient, XML Parsing, JSON Sending user notifications Android, a Linux-based Mobile Phone Operating SystemAndroid, a Linux-based Mobile Phone Operating System Applications All applications are equals ! How to are developed in Java androidize ? can use any mentioned functionalities can cooperate togetherAndroid, a Linux-based Mobile Phone Operating SystemAndroid, a Linux-based Mobile Phone Operating System 5 6. 6/30/09 Android Applications Manifest AndroidManifest.xml Services ContentProviders Intents Android, a Linux-based Mobile Phone Operating SystemAndroid, a Linux-based Mobile Phone Operating System Activity Life cycle Visual user interface for one task. For example, An activity might present a list of menu items; Or shows a list of contacts to send messages to Work together to form a cohesive user interface Each activity is independent of the others. Can communicate together One of the activities is marked as the first one Moving from one activity to another is accomplished by having the current activity start the next one. An activity can also make use of additional windows. For example, A pop-up dialog that calls for a user response in the midst of the activity. A view hierarchy is placed within an activity's window by theActivity.setContentView() method. The content view is the Viewobject at the root of the hierarchy.Android, a Linux-based Mobile Phone Operating System Android, a Linux-based Mobile Phone Operating System 6 7. 6/30/09 Layout & View Service res/layout/main.xml Doesn't have a visual user interface Runs in the background for an indefinite period of time. Keep the music playback service running even after the activity that Exposed by the service. E.g., interface allows pause, rewind, stop, and restart the playback. Android, a Linux-based Mobile Phone Operating SystemAndroid, a Linux-based Mobile Phone Operating System Life cycleBroadcastReceiver Does nothing but receive and react to announcements. Many broadcasts from the system, timezone has changed battery is low, picture has been taken, or that the user changed a language preference. Applications can also initiate broadcasts Data has been downloaded, etc. An application can have any number of broadcast receivers Receivers extend the BroadcastReceiver base class. Broadcast receivers do not display a user interface. May start an activity in response May use the NotificationManager to alert the user Flashing the backlight, vibrating the device, etc. Place a persistent icon in the status bar Android, a Linux-based Mobile Phone Operating SystemAndroid, a Linux-based Mobile Phone Operating System 7 8. 6/30/09 ContentProviderIntent Make application data available to other applications. Activities, services, and broadcast receivers are activated through intents. Can be stored in the file system, Facility for late run-time binding between components In an SQLite database, Passive data structure holding an abstract description of an operation to beperformed Or in any other manner that makes sense. To launch or get an activity, an Intent object is passed to Implementa standard set of methods Context.startActivity(), Activity.startActivityForResult() Context.startService() to initiate a service Enables other applications to retrieve and store data Context.bindService() to establish a connection Applications do not call methods directly broadcast methods Context.sendBroadcast(), Context.sendOrderedBroadcast(), ContentResolver object is used Context.sendStickyBroadcast()) Can talk to any content provider System finds the appropriate activity, service, or set of broadcast receivers Cooperates with the provider to manage any interprocess Intent passed to startActivity() is delivered only to an activity, never to a service communication that's involved. or broadcast receiver, etc.Android, a Linux-based Mobile Phone Operating System Android, a Linux-based Mobile Phone Operating System Activity, Intent, and ServiceRPC Android, a Linux-based Mobile Phone Operating System Android, a Linux-based Mobile Phone Operating System8 9. 6/30/09 From Source to Deployment WhychoosingAndroid ?Android, a Linux-based Mobile Phone Operating System Android, a Linux-based Mobile Phone Operating System Im freeIm openAndroid, a Linux-based Mobile Phone Operating System Android, a Linux-based Mobile Phone Operating System9 10. 6/30/09 Android Perspectives Im a communityAndroid, a Linux-based Mobile Phone Operating System Android, a Linux-based Mobile Phone Operating System Android on the phone marketAndroid on other markets Moreand more handset manufactures are choosing Androidis already used on Android Tablet PC To compete with the iPHONE HP Is 'Studying' Android for PC Use Android Eee PCs are also announced Anychance of success ? Q1 2010 YES More and more applications are available ! Android, a Linux-based Mobile Phone Operating SystemAndroid, a Linux-based Mobile Phone Operating System 10 11. 6/30/09 OSGi & Android togetherQuestions ? OSGi Comes from the Java wave Modularity model on the top of Java Is became very popular in the last 5 years Why using OSGi on Android ? Runtime deployment Dynamism Plugin architecture . Is it possible? Dr. Clement EscoffierKarl Pauls Yes, http://www.ezdroid.com/[email protected] [email protected] Driven by akquinet and luminisBlowstrae 66, 10783 Berlin Blowstrae 66, 10783 Berlin +49 175 246 77 17+49 151 226 49 845 Android, a Linux-based Mobile Phone Operating SystemAndroid, a Linux-based Mobile Phone Operating System11