Overview of Android Programming: March 3, 2012
Overview of Android Programming: March 3, 2012
March 3, 2012
Installing 4. ADT
Installing 4. ADT
Installing 4. ADT
Android Architecture
Introductory Concepts
Features:
Application framework
reuse and replacement of components
Integrated browser
open source WebKit engine
Optimized graphics
custom 2D graphics library 3D graphics based on the OpenGL ES 1.0 specification
Introductory Concepts
SQLite
structured data storage
Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)
Introductory Concepts
Rich development environment
device emulator tools for debugging memory and performance profiling plugin for the Eclipse IDE
Introductory Concepts
Application Fundamentals
Java Android package (.apk) Sandboxed Manifest, resources, components (Activities, Services, Content providers, Broadcast receivers)
Introductory Concepts
Activities
represents a single screen with a user interface when new activity starts, it is pushed onto the back stack UI can be built with XML or Java Lifecycle callback methods
onCreate(), onStart(), onResume(), onPause(), onStop(), and onDestroy()
Introductory Concepts
Services
perform long running operations in the background no UI runs independently of the component that created it can be bound to by other application components
Introductory Concepts
Content Providers
store and retrieve data and make it accessible to all applications only way to share data across applications data is exposed as a simple table exposes a public URI that uniquely identifies its dataset
Introductory Concepts
Broadcast Receivers
responds to system-wide broadcast announcements
Ex: low battery charge
applications can initiate their own broadcasts no UI but can create bar notifications