MAD
MAD
MAD
Android 10.0 Q
4 Marks:
Q2.2] Ans
Android's
architecture is based on a layered approach, with each layer providing services to the layer above it.
Here is a brief description of Android's architecture:
1.Linux Kernel: At the bottom of the architecture is the Linux kernel, which provides core system
services such as process management, memory management, and device drivers.
2.Libraries: The libraries layer includes various libraries written in C and C++ programming
languages. These libraries provide essential system services, including multimedia, graphics, and
networking. Android's libraries are built on top of the Linux kernel.
3.Runtime: The runtime layer includes the Dalvik Virtual Machine (DVM) or Android Runtime
(ART), which executes application code. The DVM is responsible for running Android applications
written in Java, while ART runs Android applications written in Kotlin or Java.
5.Applications: At the top of the architecture are the applications that users interact with. These
applications are written using the Android SDK and run on top of the Android platform.
7. Explain Following Term W.R.T Android Architecture:
A. Android Application. B. Android Kernel.
Ans:
A. Android Application: Android applications are the topmost layer of the Android
architecture that consists of user interface and application components. These applications
are developed using the Android SDK, which provides developers with a set of tools and APIs
for building Android applications using programming languages like Java and Kotlin. Android
applications can be installed on Android devices, such as smartphones, tablets, and smart
TVs. The Android application layer is responsible for providing a user-friendly interface and
handling user input.
B. Android Kernel: The Android kernel is the bottommost layer of the Android architecture,
consisting of core system components, device drivers, and a hardware abstraction layer. It is
based on the Linux kernel and is responsible for managing system resources like memory,
CPU, and input/output operations. The Android kernel also provides various security
features like process isolation and memory protection. The Android kernel acts as a bridge
between the hardware and the Android operating system, making it possible for the
operating system to interact with the hardware.
1) Go to the official Android Studio website and download the latest version of Android Studio
for your operating system (Windows, macOS, or Linux).
3) Follow the on-screen instructions to accept the license agreement and choose the
installation location.
5) Choose the start menu folder and whether you want to create a desktop shortcut.
8) Android Studio will now launch automatically. If it doesn't, you can launch it from the start b
menu or by clicking on the desktop shortcut (if you chose to create one).
9) Android Studio will prompt you to download the latest Android SDK (Software Development
Kit) components. Follow the on-screen instructions to download and install the necessary
components.
10) Once the download and installation of the SDK components is complete, Android Studio is
ready to use.
Chapter 2 – INSTALLATION & CONFIGURATION OF ANDROID
8] What Is ADT?
Ans: ADT is a plugin for the Eclipse IDE used for developing Android applications. It
provides tools for designing user interfaces, debugging applications, and building and
testing Android applications within the Eclipse environment. However, it's no longer
supported by Google, and developers are encouraged to use Android Studio instead.
DVM uses its own byte code and runs the “.Dex” file.
JVM uses java byte code and runs “.class” file having
2 From Android 2.2 SDK Dalvik has got a Just in Time
JIT (Just In Time).
compiler
4 DVM supports the Android operating system only. JVM supports multiple operating systems.
5 For DVM very few Re-tools are available For JVM many Re-tools are available.
6 There is a constant pool for every application. It has a constant pool for every class.
The Dalvik Virtual Machine (DVM) is a specialized runtime engine used by Android to execute
applications. As shown in the diagram, the DVM consists of several key components, including a class
loader, bytecode verifier, interpreter, and Just-In-Time (JIT) compiler.
The class loader is responsible for loading classes and resources into the DVM as needed, while the
bytecode verifier ensures that the bytecode in the application's DEX file is valid and secure. The
interpreter executes the bytecode of the application, and the JIT compiler optimizes application
performance by dynamically compiling bytecode to native code at runtime.
One of the key advantages of the DVM is its use of a register-based architecture, which is more
efficient for mobile devices than the stack-based architecture used by the traditional Java Virtual
Machine (JVM). Additionally, the DVM uses optimization techniques like JIT compilation to improve
application performance.
Ans: The Android SDK (Software Development Kit) is a set of software tools and resources that enable
developers to create applications for the Android platform. It includes libraries, an emulator,
debugging tools, and documentation to help developers create Android applications.
The Android SDK offers various tools that are designed for different development tasks, such as the
Android Studio Integrated Development Environment (IDE) that offers a graphical interface for
designing user interfaces and writing code. The Android Debug Bridge (ADB) tool allows developers
to connect to physical devices and debug applications directly on the device.
One of the key advantages of the Android SDK is that it is constantly updated with new versions of
Android and new development tools, ensuring that developers have access to the latest features and
capabilities of the platform. This enables developers to create a wide variety of applications for
Android, from simple games and utilities to complex enterprise applications.
Overall, the Android SDK is an essential resource for developers looking to build applications for the
Android platform, and it provides a comprehensive set of tools and resources to help developers
create high-quality applications for Android.
What is OHA?
The OHA is the group that is in charge of the Android smartphones operating system. It was created
by Google. The Open Handset Alliance (OHA) is consortium of multiple companies like Samsung,
Sony, Intel and many more to provide services and deploy handsets using android platform.
The Open Handset Alliance (OHA) is an association whose goal is to develop open standards for
mobile devices, promote innovation in mobile phones and provide a better experience for
consumers at a lower cost.
Features of Android:
What is a mobile application.
A mobile application, commonly known as a mobile app, is a software
application designed to run on a mobile device, such as a smartphone or
tablet. Mobile apps offer a wide range of features and functionalities, including
social networking, gaming, entertainment, productivity, education, health and
fitness, and much more. These applications can be downloaded from an app
store, such as Apple's App Store or Google Play, and installed on the user's
mobile device.