1, the Android system is divided into four layers, namely, Linux kernel layer, libraries layer, framework layer, and applications layer;
The Linux kernel layer contains the Linux kernel and various drivers;
The libraries layer contains various class libraries (dynamic libraries (also called shared libraries), Android runtime libraries, Dalvik virtual machines), and the programming language is mainly C or C + +
Most of the framework layer is written in the Java language and is the cornerstone of the Java world on the Android platform
The applications layer is the application layer, which we develop on this layer, using Java speech writing
2. The difference between a Dalvik vm and a traditional JVM:
Traditional JVM: Write a. java file à compile to a. class file à package into a. jar file
Dalvik VM: Write a. java file à compile the. class file into a. dex file à package into an. apk file (via the DX tool)
It improves efficiency by consolidating all classes into one file. More suitable to run on the phone
1. Linux kernel layer [Linux KERNEL]:
Contains the Linux kernel and driver modules (such as USB, Camera, Bluetooth, etc.).
Android2.2 (code Froyo) is based on the Linux kernel version 2.6.
2. LIBRARIES layer [LIBRARIES]:
This layer provides a dynamic library (also called a shared library), an Android runtime library, a Dalvik virtual machine, and so on.
The programming language is mainly C or C + +, so it can be simply regarded as native layer.
3. Framework layer [application framework]:
Most of this layer is written in the Java language, which is the cornerstone of the Java world on the Android platform.
4. Applications layer [application]: Application layer
:
The whole diagram of the system hierarchy is simplified to the following diagram, corresponding to the following:
Framework Layer--------Àjava World
Libraries Layer--------Ànative World
Linux kernel layer--------àlinux OS
Communication between the Java world and the native world is through the JNI layer
The JNI layer and the native world can directly invoke the system's underlying
Android's system architecture