Introduction To Android
Introduction To Android
B.Bhuvaneswaran
Assistant Professor (SS)
Department of Computer Science & Engineering
Rajalakshmi Engineering College
Thandalam
Chennai 602 105
[email protected]
Contents
Introduction
Android version and API Level
The Big picture
Comparison of DVM and JVM
Android Features
Application Fundamentals
Android Application Components
Introduction
A Linux based Operating System designed
primarily for touch screen mobile devices.
Initially developed by Android Inc and
later purchased by Google in 2005.
The first Android powered device was sold
in Oct 2008.
Android is Open Source and Google
releases code under Apache2 license.
Google Play Store.
Open Android.
What it means to be open and why would
you care?
http://www.apache.org/licenses/LICENSE-2.0.html
2009
2010
2011
2012
Honeycomb
Android 3.0-3.2
Android 4.0+
API Level
Platform Version
API Level
Version Name
Android 4.2
17
Jelly bean
16
Jelly bean
Android 4.0.3,
4.0.4
Android 4.0, 4.0.1,
4.0.2
Android 3.2
15
13
Ice cream
sandwich
Ice cream
sandwich
Honey Comb
Android 3.1.x
12
Honey Comb
Android 3.0.x
11
Honey Comb
Android 2.3.4
Android 2.3.3
10
Gingerbread
14
API Level
Platform
Version
Android 2.3.2
Android 2.3.1
Android 2.3
Android 2.2.x
API Level
Version Name
Gingerbread
Froyo
Android 2.1.x
Eclair
Android 2.0.1
Eclair
Android 2.0
Eclair
Android 1.6
Donut
Android 1.5
Cupcake
API Level
Activity BackStack
main
Push
Operation
(Last in)
Activity 2
Activity 2 is
visible on
screen
Main activity
goes in
background
Activity BackStack
main
Pop
operation
(First Out)
Activity 2
Main activity is
visible on
screen and
activity 2 is
destroyed
Java Source
Code
Java
Compiler
Java
Compiler
Java Byte
Code
Dalvik Executable
JVM
DVM
B.Bhuvaneswaran, AP (SS) / CSE / REC
DVM
JVM
Architecture
base
Register
Stack
No of operations
fewer
more
File format
.dex
.class
Property
Stack Based
POP 20
POP 7
ADD 20, 7, result
PUSH result
Register Based
Add R3,R1,R2
Android Features
Application framework enabling reuse
and replacement of components.
Dalvik Virtual Machine optimized for
mobile devices.
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.
(hardware dependent)
(hardware dependent)
(hardware dependent)
Application Fundamentals
Apk holds
Code(.dex file)
Resources
Assets
Certificates
Manifest file
Activity
An Activity is an application component
that provides a screen with which users
can interact in order to do something.
An activity is implemented as Subclass of
Activity.
Services
A Service is an application component that
can perform long-running operations in
the background and does not provide a
user interface.
A service is implemented as a subclass of
Service.
Content Providers
A content provider manages a shared set
of application data.
A content provider is implemented as a
subclass of ContentProvider.
Broadcast Receivers
A broadcast receiver is a component that
responds to system-wide broadcast
announcements.
A broadcast receiver is implemented as a
subclass of BroadcastReceiver.
Summary
Android
Android
DVM Vs
Android
Android
References
(1)http://developer.android.com/about/versions/index.html
(2)http://developer.android/reference/android/app/Activity.html