The Android system has a total of 4 layers from the bottom up and each layer encapsulates the underlying implementation and exposes the calling interface to the previous layer.
1. Linux kernel (Linux Kernel)
1) Android runs on Linux kernel 2.6, but replaces the part of Linux that is bound by the GNU protocol so that Android programs can be used for commercial purposes.
2) The Linux kernel is the abstraction layer between the hardware and software layers.
3) The system always needs the support of the operating system, such as memory management, process management, network protocol stack, etc.
2. Middleware (that is, Android C + + framework)
1) middleware consists of two parts: core library and runtime (libraries & Android Runtime)
2) Core library includes, Surfacemanager Display System Management Library, responsible for the display of 2D or 3D content to the screen; Media Framework Library, responsible for supporting images, supporting the recording and playback of multiple video and audio; SQlite database, A powerful lightweight embedded relational database, WebKit browser engine, etc.
3) Dalvik virtual machine: Different from Java Virtual machine, every Android application runs in its own process, there is a own Dalvik virtual machine, this can make the system can be optimized at runtime, the impact of the program is greatly reduced. Instead of running Java bytecode, the Dalvik virtual machine runs its own bytecode.
which
SurFace Manager: Display the subsystem's manager
Libwebcore:web browser engine, support Android browser
Sgl:skia Graphics library, the underlying 2D graphics engine
3D Library: OpenGL
FreeType: Font Display
3. Application Framework (Application framework)
1) Rich and extensible view (views), can be used to build applications, it includes list (lists), grid (grids), TextBox (text boxes), button (buttons), embeddable Web browser.
2) content providers (Providers) enable applications to access data from another application, such as a contact database, or share their own data.
3) Resource Manager (Resource Manager) provides access to non-code resources, such as local strings, graphics, and layout files ( layoutfiles).
4) the Notification Manager (Notification Manager) enables applications to display customized prompts in the status bar.
5) The Activity manager is used to manage the application lifecycle and provide common navigation fallback functionality.
4. Application (applications)
Android system will include some application packages including email client, SMS short message program, calendar, map, browser, contact management program and so on. All applications are written in the Java language and do not support c development, so-called support for C development refers to the form of JNI
Transferred from: http://www.cnblogs.com/xueshui20/p/4244641.html
Android Framework Analysis _ turn