The software hierarchy in the diagram is divided into 4 levels from top to bottom
Applications (application)
Application Framework (Application framework)
Various class libraries (Libraries) and Android Runtime (Adnorid runtime)
Operating System (OS)
I. Application (APPLICATION)
The application layer is a level of interaction with the user, and users can see some of the applications that the user can manipulate. This type of application is basically a standalone application written in the Java language, capable of accomplishing certain functions. Android itself offers a number of basic applications such as Desktop (Home), contact (Contacts), call (phone), browser (browers) and many more. Developers can use the APIs provided by the application framework to write their own applications, and what ordinary developers have to do is open application-level programs that provide the vast majority of consumers.
Two. Application Framework (Application framework)
Ordinary developers can use the Android Basic application of the System api,android application framework of the various modules can be reused, a variety of services can be reused, understand this mechanism, developers can better and more easily develop a good Android application. The basic framework components commonly used in the development process are as follows:
A set of view (UI components), which include button (button), Eidtview (text box), TextView (label), list, etc., the flexible use of these components can quickly and easily create a good user interface.
Content Providers, which sounds a bit abstract and popular to understand content Provider is to provide a service through which data can be accessed and shared between the applications, such as the storage of contacts, Other apps can also access contact information stored in the Address book.
Resource Manager, as the name implies, is resource management, many of the resources in Android include images, user interface (Layout XML), fonts, colors, UI component IDs and so on can be called resources, these rich resources, are through Resource Manager for Unified Management.
Notification Manager (message Notification management), which provides messages on the status bar without affecting the user's normal operation and use of the device. For example, when a text message comes, Android will automatically prompt the message in the status bar, the user can see in a timely manner.
Activity Manager, which manages the lifecycle of an application and controls the application's navigation, plays the role of the controller. Each activity is similar to a wendow in a Windows app. General applications are made by interacting with one activity.
Window Manager, which manages all the windows that are started.
Location Manager, which is used to manage the related functions of the map service.
Telephoney Manager (phone management), which is used to manage the related functions of the phone.
Package Manager, which manages all applications installed within the Android system.
Three. Library (Libraries) and operating environment (runtime)
This section begins with the underlying, and developing a common application does not directly manipulate this layer. This layer contains a set of class libraries (Libraries) and runtime (runtime),
The System C library (LIBC), a standard C system function library (LIBC) from BSD integration, is specifically tailored for embedded Linux-based devices.
Media Framework, based on Packevideo Opencore, which supports a variety of commonly used audio, video formats, as well as playback and recording, while supporting still image files. Encoding formats include: MPEG4, H.264,mp3, AAC, AMR, JPG, PNG.
Surface Manager manages the display subsystem and provides a seamless blend of 2d,3d layers for multiple applications.
WebKit, an up-to-date web browser engine that supports andiroid browsers or embedded web views.
SGL the bottom 2D graphics engine.
Opengl|es, based on OpenGL ES 1.0 APIs, can use hardware 3D acceleration or use highly optimized 3D soft acceleration.
FreeType, Bitmap (bitmap) and moderate (vector) Word graph display support.
SQLite, a powerful lightweight relational database engine that is available for all applications.
Core Libraries provides most of the functionality of the core library of the Java programming language.
Dalvik VM, a virtual machine on the Android platform, is the equivalent of a Java Virtual machine JVM in a PC.
Iv. operating System (OS)
Android's core system service relies on the Linux 2.6 kernel, and the services that the operating system provides for Android include:
(security).
Memory Management (Management)
Progress Management (Process Management)
Networking stacks (Network stack)
The driver Model (Driver models) contains the following general drivers:
(1) Display Driver
(2) Keypad Driver
(3) Camera Driver
(4) WiFi Driver
(5) Flash Memory Driver
(6) Audio Driver
(7) Binder (IPC) Driver
(8) Power Management
Introduction to Android System framework