What are the common Android development frameworks?

Source: Internet
Author: User

The Android app was originally developed by Google for the Linux platform-based open-source phone operating system. It includes operating systems, user interfaces, and applications, and Android includes a core library that provides most of the functionality of the Java programming language core library. But what about the Android development framework when it comes to building a framework for the environment for Android application development?

1, applications

Android assembles a collection of core applications, including email clients, SMS programs, calendars, maps, browsers, contacts, and other settings. All applications are written in the Java programming language. A richer application awaits us to develop! From the above we know that Android architecture is layered, very clear, and the division of labor is clear. Android itself is a set of software stack (software stack), or "Software overlay Architecture", which is divided into three layers: operating system, middleware, application. From the above we also see the power of open source, a familiar open source software here to contribute their own strength.

2. Linux Kernel

Android based Linux 2.6 provides core system services such as security, memory management, process management, network stacks, and drive models. Linux kernel also acts as an abstraction layer between hardware and software, which hides specific hardware details and provides a unified service for the upper layer. If you learn the computer network know OSI/RM, you will know that the benefits of layering is to use the services provided below to provide a unified service for the upper layer, shielding the differences between the layers and the following layers, when the layer and the following layers have changed will not affect the upper level. That is to say, each layer to do their job, each layer provides fixed sap (Service Access Point), professional points can be said to be high cohesion, low coupling. If you're just doing Android app development, there's no need to get into the Linux kernel layer.

3, application Framework

by providing an open development platform, Android enables developers to develop extremely rich and innovative applications. Developers are free to take advantage of device hardware, access location information, run background services, set alarms, add notifications to the status bar, and much more. Developers can fully use the framework APIs used by the core application. The architecture of an application is designed to simplify the reuse of components, and any application can publish his functionality and any other application can use these features (subject to the security restrictions enforced by the framework). This mechanism allows the user to replace a component. All applications are actually a set of services and systems, including: view--a rich, extensible collection of views that can be used to build an application. Includes lists, grids, text boxes, buttons, and even embedded web browser content providers (Providers)--Enables applications to access data from other applications (such as communications Records) or share their own data explorer (Resource Manager)-- Provides access to non-code resources such as localized strings, graphics, and layout file Notification Manager (Notification Manager)--Enables all applications to display a custom warning activity manager in the status bar-managing the application lifecycle, Provides a common navigation fallback feature.

4, Libraries

android contains a collection of C + + libraries for use by various components of the Android system. These features are exposed to developers through the Android application framework (application framework). Here are some core libraries: the BSD derivative of the System C library, the standard C system library (LIBC), tuned to the embedded Linux Device Media Library-based on the PacketVideo Opencore. These libraries support the playback and recording of many popular audio and video formats, as well as still image files, including MPEG4, H, MP3, AAC, AMR, JPG, PNG Interface Management--manage access to the display subsystem and seamlessly combine multiple applications in a two-and three-dimensional graphics layer libwebcore--is a modern web browser engine that drives Android browsers and embedded Web views sgl--basic 2D graphics engine 3D Library-based on the implementation of OpenGL ES 1.0 APIs. Library uses hardware 3D acceleration or contains highly optimized 3D software raster FreeType-bitmap and vector font rendering SQLite-a powerful and lightweight relational database engine that all applications can use

5, Android Runtime

android contains a collection of core libraries that provide most of the functionality available in the core class library of the Java programming language. Each Android application is an instance of a Dalvik virtual machine that runs in their own process. Dalvik virtual machines are designed to efficiently run multiple virtual machines on a single device. The Dalvik virtual machine executable file format is. The Dex,dex format is a compression format designed for Dalvik and is suitable for systems with limited memory and processor speed. Most virtual machines, including JVMs, are stack-based, while Dalvik virtual machines are register-based. Both architectures have pros and cons, and generally, stack-based machines require more instructions, and register-based machine instructions are larger. DX is a set of tools that convert Java. class to. dex format. A DEX file typically has more than one. Class. Because Dex sometimes has to be optimized, it increases the file size by 1-4 times, ending with Odex. Dalvik virtual machines rely on the Linux kernel to provide basic functionality, such as threading and underlying memory management.

From the Android application development framework above we know that Android architecture is layered, very clear, and the division of labor is clear. Android itself is a set of software stacks (software stack), or "Software overlay Architecture", which is divided into three layers: operating systems, middleware, applications. From the above we also see the power of open source, a familiar open source software here to contribute their own strength.

Recommended Reading

Android Rapid Development Framework: Thinkandroid

The first to know Facebook's powerful Android picture loaded frame--fresco

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

What are the common Android development frameworks?

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.