Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Introduction to the Android Platform and SDK Jacek Surazski.

Similar presentations


Presentation on theme: "1 Introduction to the Android Platform and SDK Jacek Surazski."— Presentation transcript:

1 1 Introduction to the Android Platform and SDK Jacek Surazski

2 2 Android Architecture

3 3 Features Application framework enabling reuse and replacement of components Integrated browser based on the open source WebKit engine Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional) SQLite for structured data storage Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)

4 4 Features 2 GSM Telephony (hardware dependent) EDGE, 3G, and WiFi (hardware dependent) Camera, GPS, compass, and accelerometer (hardware dependent) Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE

5 5 SDK SDK available at http://code.google.com/android/

6 6 Dalvik Java bytecod e (.jar) Java compiler Java projec t dx dalvik bytecod e (.dex)

7 7 Security Sandboxing of Linux processes Every application runs in separate VM Granting permissions during package install Verifying permissions at runtime

8 8 Android Application Manifest Activity Content provider View s

9 9 Activity Stack

10 10 Content Providers content://pictures/ idnam e widt h heigh t 123123 Fire truck Red Beatle Yellow van 120 130 115 200 230 220 content://contacts/ idnam e phon e 123123 Bob Spankeur Dave Whatsit Steve Longdoodle 6014284 3 22453211 7123432 2

11 11 Intents actionuri VIEWhttp://www.google.com/ VIEWtel:123 DIALcontent://contacts/1 VIEWcontent://contacts/ EDITcontent://notes/1

12 12 Standard Actions ACTION_MAIN ACTION_VIEW ACTION_ATTACH_DATA ACTION_EDIT ACTION_PICK ACTION_CHOOSER ACTION_GET_CONTENT ACTION_DIAL ACTION_CALL ACTION_SEND ACTION_ANSWER ACTION_INSERT ACTION_DELETE ACTION_RUN ACTION_SYNC ACTION_PICK_ACTIVITY ACTION_SEARCH ACTION_WEB_SEARCH ACTION_FACTORY_TEST ACTION_SENDTO

13 13 Android Manifest Application name, icon Activity Intent filter Activity Intent filter Content provider Permissions

14 14 Permissions ACCESS_FINE_LOCATION BATTERY_STATS CALL_PHONE CAMERA CHANGE_WIFI_STATE DELETE_PACKAGES GET_ACCOUNTS INJECT_EVENTS INSTALL_PACKAGES INTERNET MASTER_CLEAR MODIFY_AUDIO_SETTINGS MOUNT_UNMOUNT_FILESYSTEMS READ_CALENDAR READ_CONTACTS READ_FRAME_BUFFER READ_SMS RECEIVE_MMS RECEIVE_SMS RECORD_AUDIO SEND_SMS VIBRATE WRITE_CALENDAR WRITE_CONTACTS WRITE_OWNER_DATA WRITE_SMS

15 15 Views

16 16 “Back” button

17 17 Menu button

18 18 Master-detail application Item 3 Item 1 Item 2 Item 4 Item 5 content provider content://foo VIEW content://foo VIEW content://foo/ 3 Property 2 Item 1 Property 1 Property 3 Property 4 Adapter EDIT content://foo/ 3 Property 2 Item 1 Property 1 Property 3 Property 4

19 19 Menu button Thank you and happy hacking! :)


Download ppt "1 Introduction to the Android Platform and SDK Jacek Surazski."

Similar presentations


Ads by Google