Android hierarchy and Analysis

Source: Internet
Author: User

Android hierarchy and Analysis

1. android is divided into four layers:

Application Layer Applications), Application Framework layer Application Framework), system Runtime Library layer Libraries and Android Runtime), and Linux Kernel layer Linux Kernel ).

2. Application Layer:

All applications are written in java by calling the APIS provided by the application framework layer ApplicationFramework.

3. Application Framework Layer

It provides developers with an API framework for full access to core applications.

· Activity MANAGER: manages application lifecycles and provides common navigation rollback functions. For example, you need to enable the resources required by the application and release the resources required when you exit the application.

· Window Manager: manages all opened window programs.

· Content providers: Enable applications to access data of another application, such as the contact database, or share their data.

· View system: it can be used to build applications, including list, grid, text box, button, and drawing, as well as embedded web browsers.

· Notification MANAGER: enables the application to display custom prompts in the status bar.

· Package Manager: manages all applications installed on Android. For example, viewing information and uninstalling programs.

· Resource Manager: provides various resource providers. For example, character resources, image resources, and audio resources.

· Hardware services: call and answer functions, map management functions, Bluetooth functions, WIFI functions, USB functions, and sensor services.

4. System runtime database:

The system Runtime Library layer consists of the library and Android Runtime Library.

1) Library: Android contains some C/C ++ libraries that can be used by different components in the Android system. They provide services to developers through the application framework, core library features:

SurfaceManager: manages the display subsystem and provides seamless integration of 2D and 3D layers for multiple applications.

MediaFramework: Based on PacketVideoOpenCORE, this library supports playback and recording of audio and video in multiple formats, and supports static image files. The encoding formats include MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

SQLite: lightweight relational database engine available and powerful for all applications

OpenglES supports OpenGL ES1.x and OpenGL ES 2.0. This library can use hardware 3D acceleration or highly optimized 3D soft acceleration.

FreeType: bitmap, vector, and font display

Webkit: The latest Web browser engine that supports Android browsers and an embedded Web server.

SSL: secure communication-related technical processing, a security protocol that provides security and data integrity for network communication.

Libe: Android does not use glibc as the C library, but uses BionicLib developed by Google. It inherits the Standard C system function library from BSD and is specially tailored for Embedded Linux devices.

2) Android Runtime Library:

The Android Runtime Library is divided into the core library and the Dalvik virtual machine. The core library provides most of the functions of the core library of the Java language. Here, the core Library provides the interface for calling the underlying Library to the application framework layer through JNI. The Dalvik virtual machine is implemented to run multiple VMs at the same time.

5. Linux kernel layer:

Android depends on the core system services provided by Linux kernel, such as security, memory management, process management, network stack, and driver module. Android enhances the kernel.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.