Runoob Tutorial ArchiveEnglish

Android Architecture

Android Architecture

The Android operating system is a stack of software components, which can be roughly divided into five parts and four main layers in an architecture diagram.

Android Architecture


Linux Kernel

At the very bottom of all layers is Linux - including Linux 3.6 with about 115 patches. It provides basic system functions such as process management, memory management, and device management (such as camera, keyboard, display). At the same time, the kernel handles all the work that Linux excels at, such as networking and numerous device drivers, thus avoiding the inconvenience of being compatible with a large number of peripheral hardware interfaces.


Program Libraries

Above the Linux kernel layer is a collection of program libraries, including the open-source Webkit web browser engine, the well-known libc library, the SQLite database used for repository storage and application data sharing, libraries for playing and recording audio and video, and the SSL library for network security, among others.


Android Libraries

This category includes Java-based libraries specifically for Android development. Examples of these libraries include application framework libraries for building user interfaces, drawing graphics, and accessing databases. A summary of core Android libraries available to Android developers is as follows:

Having looked at the core Java-based libraries within the Android runtime layer, it is time to focus on the C/C++ based libraries in the Android software stack.


Android Runtime

This is the third part of the architecture, the second layer from the bottom. This part provides key components of the Dalvik Virtual Machine, similar to the Java Virtual Machine, but specifically designed and optimized for Android.

The Dalvik Virtual Machine allows Linux kernel features, such as memory management and multithreading, to be used in Java. The Dalvik Virtual Machine allows every Android application to run in its own independent virtual machine process.

The Android Runtime also provides a series of core libraries for Android application developers to write Android applications using the standard Java language.


Application Framework

The application framework layer provides many advanced services to the application in the form of Java classes. Application developers are allowed to use these services in the application.


Application

The top layer contains all Android applications. The applications you write will also be installed in this layer. These applications include contacts, browsers, games, etc.