· activity manager managing the lifecycle of applications and providing a common navigation...

23

Upload: others

Post on 22-May-2020

14 views

Category:

Documents


0 download

TRANSCRIPT

Page 1:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android
Page 2:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android
Page 3:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android
Page 4:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android
Page 5:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

The Android Software Stack

@2010 Mihail L. Sichitiu 5

Page 6:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android
Page 7:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

Android S/W Stack - Application

• Android provides a set of core applications: Email Client Email Client SMS Program Calendar Maps Browser Contacts Etc

• All applications are written using the Java language.7

• All applications are written using the Java language.

Page 8:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

Android S/W Stack – App Framework

8

Page 9:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

Android S/W Stack –App Framework (Cont)App Framework (Cont)

Feature RoleFeature Role

View System

Used to build an application, including lists, grids, textboxes, buttons, and embedded web browserSystem boxes, buttons, and embedded web browser

Content Provider

Enabling applications to access data from other applications or to share their own data

Resource Manager

Providing access to non-code resources (localized string, graphics, and layout files)

Notification Manager

Enabling all applications to display customer alerts in the status bar

Activity Manager

Managing the lifecycle of applications and providing a common navigation backstack

9

Page 10:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

Location Manager

Page 11:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

Notification Manager

Page 12:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

View SystemView System

Page 13:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

View SystemView System

Page 14:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

Android S/W Stack - LibrariesAndroid S/W Stack - Libraries

14

Page 15:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android
Page 16:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

Android S/W Stack - Runtime

• Core LibrariesProviding most of the functionality available in the Providing most of the functionality available in the

core libraries of the Java languageAPIsAPIsData StructuresUtilitiesFile AccessNetwork AccessGraphics

16

GraphicsEtc

Page 17:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android
Page 18:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

Android S/W Stack – Runtime (Cont) • Dalvik Virtual Machine (Cont)Executing the Dalvik Executable (.dex) formatExecuting the Dalvik Executable (.dex) format.dex format is optimized for minimal memory footprint.CompilationCompilation

Relying on the Linux Kernel for:ThreadingLow-level memory management

18

Page 19:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

The Dalvik runtime is optimised for The Dalvik runtime is optimised for mobile applicationsmobile applications

Run multiple VMs efficiently

Each app has its own VM

Minimal memory footprint

Page 20:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

Android applications are compiled to Android applications are compiled to Dalvik bytecodeDalvik bytecode

Write app in Java

Compiled in JavaCompiled in Java

Transformed to Dalvik bytecodeTransformed to Dalvik bytecode

Linux OSLoaded into Dalvik VM

Linux OS

Page 21:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android

Android S/W Stack – Linux Kernel

Relying on Linux Kernel 2.6 for core system services

Memory and Process Management

Network Stack

Driver Model

Security• The supplied device drivers include Display, Camera, Keypad, WiFi,

Flash Memory, Audio, and IPC (interprocess communication). Providing an abstraction layer between the H/W and the rest of the

21

Providing an abstraction layer between the H/W and the rest of the S/W stack

Page 22:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android
Page 23:  · Activity Manager Managing the lifecycle of applications and providing a common navigation backstack 9. Location Manager. Notification Manager. View System. View System. Android