0% found this document useful (0 votes)
6 views

Android dev't 2

The Android runtime core libraries are Java-based APIs that serve as wrappers around C/C++ libraries, which handle various functions like graphics, communication, and database management. The Android runtime includes the Dalvik virtual machine, allowing applications to run in their own processes, while the Application Framework provides essential services for managing application lifecycle, data sharing, and user interfaces. Ultimately, all applications built on Android utilize this framework, runtime, and libraries, which interact with the underlying Linux kernel.
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)
6 views

Android dev't 2

The Android runtime core libraries are Java-based APIs that serve as wrappers around C/C++ libraries, which handle various functions like graphics, communication, and database management. The Android runtime includes the Dalvik virtual machine, allowing applications to run in their own processes, while the Application Framework provides essential services for managing application lifecycle, data sharing, and user interfaces. Ultimately, all applications built on Android utilize this framework, runtime, and libraries, which interact with the underlying Linux kernel.
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
You are on page 1/ 2

The Android runtime core libraries outlined in the preceding section are Java-based and provide the

primary APIs for developers writing Android applications. It is important to note, however, that the core
libraries do not perform much of the actual work and are, in fact, essentially Java “wrappers” around a
set of C/C++ based libraries. When making calls, for example, to the android.opengl library to draw 3D
graphics on the device display, the library actually ultimately makes calls to the OpenGL ES C++ library
which, in turn, works with the underlying Linux kernel to perform the drawing tasks.
C/C++ libraries are included to fulfill a wide and diverse range of functions including 2D and 3D graphics
drawing, Secure Sockets Layer (SSL) communication, SQLite database management, audio and video
playback, bitmap and vector font rendering, display subsystem and graphic layer management and an
implementation of the standard C system library (libc).
In practice, the typical Android application developer will access these libraries solely through the Java
based Android core library APIs. In the event that direct access to these libraries is needed, this can be
achieved using the Android Native Development Kit (NDK), the purpose of which is to call the native
methods of non-Java or Kotlin programming languages (such as C and C++) from within Java code
using the Java Native Interface (JNI).

Android runtime
At the same layer as the libraries, the Android runtime provides a set of core libraries that enable
developers to write Android apps using the Java programming language. The Android runtime also
includes the Dalvik virtual machine, which enables every Android application to run in its own process,
with its own instance of the Dalvik virtual machine (Android applications are compiled into the Dalvik
executables). Dalvik is a specialized virtual machine designed specifically for Android and optimized for
battery-powered mobile devices with limited memory and CPU.

Application Framework
The Application Framework is a set of services that collectively form the environment in which Android
applications run and are managed. This framework implements the concept that Android applications
are constructed from reusable, interchangeable and replaceable components. This concept is taken a
step further in that an application is also able to publish its capabilities along with any corresponding
data so that they can be found and reused by other 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.

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.

Package Manager – The system by which applications are able to find out information about other
applications currently installed on the device.

Telephony Manager – Provides information to the application about the telephony services
available on the device such as status and subscriber information.

Location Manager – Provides access to the location services allowing an application to receive
updates about location changes.
Applications
On the top of android framework, there are applications. All applications such as home, contact, settings,
games, browsers are using android framework that uses android runtime and libraries. Android runtime
and native libraries are using linux kernal.

You might also like