0% found this document useful (0 votes)
35 views3 pages

Overview of Android Architecture

The Android architecture consists of five sections and four main layers, starting with the Linux kernel that provides hardware abstraction. Above the kernel are libraries, including both open-source and Android-specific libraries, followed by the Android Runtime which includes the Dalvik Virtual Machine. The Application Framework layer offers higher-level services for application development, culminating in the top layer where user applications reside.

Uploaded by

g4gowthamkumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views3 pages

Overview of Android Architecture

The Android architecture consists of five sections and four main layers, starting with the Linux kernel that provides hardware abstraction. Above the kernel are libraries, including both open-source and Android-specific libraries, followed by the Android Runtime which includes the Dalvik Virtual Machine. The Application Framework layer offers higher-level services for application development, culminating in the top layer where user applications reside.

Uploaded by

g4gowthamkumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

3/15/2020 Android - Architecture - Tutorialspoint

Android - Architecture

Android operating system is a stack of software components which is roughly divided into five sections
and four main layers as shown below in the architecture diagram.

Linux kernel
At the bottom of the layers is Linux - Linux 3.6 with approximately 115 patches. This provides a level of
abstraction between the device hardware and it contains all the essential hardware drivers like camera,
keypad, display etc. Also, the kernel handles all the things that Linux is really good at such as networking
and a vast array of device drivers, which take the pain out of interfacing to peripheral hardware.

Libraries
On top of Linux kernel there is a set of libraries including open-source Web browser engine WebKit, well
known library libc, SQLite database which is a useful repository for storage and sharing of application
data, libraries to play and record audio and video, SSL libraries responsible for Internet security etc.

Android Libraries

[Link] 1/3
3/15/2020 Android - Architecture - Tutorialspoint

This category encompasses those Java-based libraries that are specific to Android development.
Examples of libraries in this category include the application framework libraries in addition to those that
facilitate user interface building, graphics drawing and database access. A summary of some key core
Android libraries available to the Android developer is as follows −

[Link] − Provides access to the application model and is the cornerstone of all Android
applications.

[Link] − Facilitates content access, publishing and messaging between applications


and application components.

[Link] − Used to access data published by content providers and includes SQLite
database management classes.

[Link] − A Java interface to the OpenGL ES 3D graphics rendering API.


[Link] − Provides applications with access to standard operating system services including
messages, system services and inter-process communication.

[Link] − Used to render and manipulate text on a device display.

[Link] − The fundamental building blocks of application user interfaces.

[Link] − A rich collection of pre-built user interface components such as buttons,


labels, list views, layout managers, radio buttons etc.

[Link] − A set of classes intended to allow web-browsing capabilities to be built into


applications.

Having covered the Java-based core libraries in the Android runtime, it is now time to turn our attention to
the C/C++ based libraries contained in this layer of the Android software stack.

Android Runtime
This is the third section of the architecture and available on the second layer from the bottom. This section
provides a key component called Dalvik Virtual Machine which is a kind of Java Virtual Machine
specially designed and optimized for Android.

The Dalvik VM makes use of Linux core features like memory management and multi-threading, which is
intrinsic in the Java language. The Dalvik VM enables every Android application to run in its own process,
with its own instance of the Dalvik virtual machine.
The Android runtime also provides a set of core libraries which enable Android application developers to
write Android applications using standard Java programming language.

Application Framework

The Application Framework layer provides many higher-level services to applications in the form of Java
classes. Application developers are allowed to make use of these services in their applications.
The Android framework includes the following key services −

Activity Manager − Controls all aspects of the application lifecycle and activity stack.
Content Providers − Allows applications to publish and share data with other applications.
[Link] 2/3
3/15/2020 Android - Architecture - Tutorialspoint

Resource Manager − Provides access to non-code embedded resources such as strings, color
settings and user interface layouts.
Notifications Manager − Allows applications to display alerts and notifications to the user.
View System − An extensible set of views used to create application user interfaces.

Applications
You will find all the Android application at the top layer. You will write your application to be installed on
this layer only. Examples of such applications are Contacts Books, Browser, Games etc.

[Link] 3/3

Common questions

Powered by AI

The Android Runtime offers advantages by providing a platform specifically tailored for mobile devices, where applications run on the Dalvik Virtual Machine. This environment is optimized for Android, leveraging Linux features for efficient memory management and process isolation. It includes core libraries modeled on the Java programming language, allowing developers to write efficient applications with the familiarity of Java, yet optimized for performance and power efficiency on mobile devices .

The Application Framework in the Android architecture provides higher-level services to Android applications through a set of Java classes. It plays a significant role by offering essential services such as the Activity Manager, which controls application lifecycle and activity stack, and the Resource Manager, which manages access to non-code resources. These services enable developers to create efficient and robust applications by utilizing pre-existing functionalities for managing user interfaces, notifications, and content sharing, thus streamlining the development process .

Libraries like android.opengl are crucial in enhancing Android application capabilities by providing access to advanced graphics rendering utilities, specifically the OpenGL ES 3D graphics API. This library enables developers to incorporate complex 3D graphics, crucial for applications that require high-quality visualization such as games and simulation apps, thereby significantly enriching the user's visual experience and potentially boosting app engagement .

The Android View System facilitates the creation of user interfaces by offering an extensible set of views that developers can leverage to build UI elements. These include standard components like buttons, labels, and layout managers. It supports the customization and extension of these components, allowing for the creation of complex and custom UIs that enhance user experience by providing a consistent and intuitive design .

Android libraries enhance application development by providing developers with pre-built functionalities that simplify common tasks. Examples include WebKit for web browsing capabilities, SQLite for database management, SSL libraries for Internet security, and multimedia libraries for audio and video processing. These libraries enable more efficient and effective application development by allowing developers to focus on app-specific features rather than reinventing these core functionalities .

The Notifications Manager improves user interaction and experience by enabling applications to display alerts and notifications that inform users about relevant events or updates. This feature helps keep users engaged with the application by providing timely information without requiring the app to be actively open. It supports various notification formats, allowing for customization to ensure important information catches the user's attention effectively .

The Resource Manager contributes to optimizing resource usage by providing a centralized system for managing and accessing non-code embedded resources such as strings, colors, and user interface layouts. By centralizing resource management, it allows developers to efficiently manage and utilize these assets, leading to reduced redundancy and better organization of resources in the application, ultimately optimizing performance and resource usage .

The Dalvik Virtual Machine (VM), specifically designed for Android, optimizes application performance by allowing each application to run in its own process with its own VM instance, leveraging Linux kernel features such as memory management and multi-threading. Unlike a traditional Java Virtual Machine, Dalvik is optimized for mobile devices with limited memory and processing power, and it uses a register-based architecture rather than a stack-based one, which can lead to more efficient execution of applications .

Content Providers enable data sharing between Android applications by providing a standardized interface to access and modify data. They abstract the data storage details and allow applications to publish data they wish to share. This facilitates interoperability between apps, ensuring seamless data exchange and integration, which is crucial for applications that rely on shared data to function properly or improve their service offerings, especially in environments with multiple apps interacting with shared data sets .

The Linux kernel serves as the foundational layer in Android's architecture, providing a crucial level of abstraction between the hardware and software components. Its primary functions include managing hardware drivers for devices such as cameras, keypads, and displays, which simplifies the process of interfacing with peripheral hardware. Additionally, the kernel handles essential tasks like networking and supports a wide array of device drivers, which are important for the overall versatility and function of the Android operating system .

You might also like