· activity manager managing the lifecycle of applications and providing a common navigation...
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/1.jpg)
![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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/2.jpg)
![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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/3.jpg)
![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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/4.jpg)
![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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/5.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/6.jpg)
![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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/7.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/8.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/9.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/10.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/11.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/12.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/13.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/14.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/15.jpg)
![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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/16.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/17.jpg)
![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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/18.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/19.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/20.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/21.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/22.jpg)
![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](https://reader035.vdocument.in/reader035/viewer/2022062916/5ec8d0a033c79323d445b2de/html5/thumbnails/23.jpg)