You are on page 1of 24

Overview of Android Programming

March 3, 2012

Overview of Android Programming


Installation

Installing 1. J2SE JDK

Installing 2. Android SDK

Installing 2. Android SDK

Installing 2. Android SDK

Installing 3. Eclipse Classic

Installing 4. ADT

Installing 4. ADT

Installing 4. ADT

Installing 5. Configuring Eclipse

Installing 5. Configuring Eclipse

Installing 5. Configuring Eclipse

Overview of Android Programming


Introductory Concepts

Android Architecture

Introductory Concepts
Features:
Application framework
reuse and replacement of components

Dalvik virtual machine


optimized for mobile devices

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)

hardware dependent features


GSM Telephony Bluetooth, EDGE, 3G, and WiFi Camera, GPS, compass, and accelerometer

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()

applications can contain multiple activities

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