Académique Documents
Professionnel Documents
Culture Documents
Emulator Basics
Host computers keyboard works
Hosts mouse works like finger
Uses hosts Internet connection
Emulator Limitations
No support for placing or receiving actual phone calls
Simulate phone calls (placed and received) through the emulator
console
No support for USB connections
No support for camera/video capture (input)
No support for device-attached headphones
No support for determining connected state
No support for determining battery charge level and AC
charging state
No support for determining SD card insert/eject
No support for Bluetooth
No support for simulating the accelerometer
Use OpenIntentss Sensor Simulator
Android
Windowsmobile
BlackBerry
company
OS family
Languages
Linux
Java
Microsoft
Windows
RIM
MobileOS
Visual C++
C++
SDK Platform
Multiplatform
dependent
dependent
Yes
Yes
Yes
Multitasking
issues
Yes
No
limited
Distributed
limited
Yes
Android Apps
Built using Java and new SDK libraries
No support for some Java libraries like Swing & AWT
Oracle currently suing Google over use
Java code compiled into Dalvik byte code (.dex)
Optimized for mobile devices (better memory
management, battery utilization, etc.)
Dalvik VM runs .dex files
javac
Byte code
.class
dx
Dalvik
exe
classes.dex
Byte code
Other .class files
aapt
<xml>
AndroidManifest.x
ml
.apk
<str
>
Resources
11
java
java
code
code
data
mp3
# library calls
aapt
MyApp.apk
Application Components
Activity
An activity represents a single screen with a user interface. An activity is
Activity
Service
Broadcas
t Receiver
Content
Resolver
Content
Provider
Intents
Building Blocks
Alarm
Manager
Notification
Manager
Other Components
Life
Cycle
Each application runs in its own process.
Each activity of an app is run in the apps process
Processes are started and stopped as needed to run an
apps components.
Processes may be killed to reclaim needed resources.
Killed apps may be restored to their last state when
requested by the user
Management
Most management of the life cycle is done automatically by