Professional Documents
Culture Documents
2 MARKS
1. List any 5 Features of Android.
1) It is open source
2) Anyone can customize the android platform
3) It provide many interesting features like date and time , whether details, map, etc
4) It provides support for messaging services,blutooth connectivity , media , etc.
5) It provides built in security features like app permissions.
2. Define Android SDK and Java SDK.
JDK:-
JDK(Java Development Toolkit) is a software development environment which is used to develop Java
applications & Applet.It physically exists.It contains JRE+ development tools.
The JDK contains a private Java Virtual Machine(JVM) and a few other resources such as an
interpreter,compiler, archiver etc.
SDK:-
Android SDK tools is a component for the Android SDK.It includes the complete set of development and
debugging tools for Android.It is included with Android Studio.
6. What Is Android?
- An android is an operating system developed by Google for mobile devices like smartphones and
tablets .
- It provides a platform for developers to create and run application specifically designed for
android devices.
8. What Is OHA?
- OHA stands for Open Handset Alliance.
- It is a consortium of several technology companies, including Google, that collaborate to develop
and promote open standards for mobile devices, particularly for the Android platform.
MAD Question bank
9. What Is Emulator?
- An emulator in Android is a software tool that allows you to run and test Android applications on
your computer.
- It creates a virtual Android device that mimics the hardware and software configurations of a real
Android device
2. RelativeLayout:
RelativeLayout is a flexible layout that allows you to position child views relative to each other or to the
parent view. It's useful for creating complex UI designs. You can use attributes like
layout_alignParentTop, layout_below, layout_toRightOf, etc., to define the relationships between views.
RelativeLayout offers more control over view positioning compared to other layouts.
3. TableLayout:
TableLayout is used to create a grid-like structure, similar to an HTML table. It allows you to
arrange child views in rows and columns. Each row in the TableLayout is represented by a
TableRow, and you can add child views to the rows. You can use attributes like layout_column
to specify the column in which a child view should be placed.
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Student Records"
android:textSize="30dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
MAD Question bank
app:layout_constraintTop_toTopOf="parent" />
<TableRow
android:layout_height="match_parent"
android:layout_width="match_parent"
android:padding="20dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="1"
android:textSize="30sp"
android:textAlignment="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Aditya Ghotekar"
android:textSize="30sp"
android:textAlignment="center" />
</TableRow>
<TableRow
android:layout_height="match_parent"
android:layout_width="match_parent"
android:padding="20dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="2"
android:textSize="30sp"
android:textAlignment="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Shubham Pawar"
android:textSize="30sp"
android:textAlignment="center" />
</TableRow>
</TableLayout>
MAD Question bank
The Dex compiler converts the class files into the .dex file that run on the Dalvik VM. Multiple class files are
converted into one dex file.
The javac tool compiles the java source file into the class file.
The dx tool takes all the class files of your application and generates a single .dex file. It is a platform-specific
tool.
The Android Assets Packaging Tool (aapt) handles the packaging process.
1) Linux kernel
It is the heart of android architecture that exists at the root of android architecture. Linux kernel is responsible
for device drivers, power management, memory management, device management and resource access.
2) Native Libraries
On the top of linux kernel, their are Native libraries such as WebKit, OpenGL, FreeType, SQLite, Media, C
runtime library (libc) etc.
The WebKit library is responsible for browser support, SQLite is for database, FreeType for font support,
Media for playing and recording audio and video formats.
3) Android Runtime
In android runtime, there are core libraries and DVM (Dalvik Virtual Machine) which is responsible to run
android application. DVM is like JVM but it is optimized for mobile devices. It consumes less memory and
provides fast performance.
4) Android Framework
On the top of Native libraries and android runtime, there is android framework. Android framework
includes Android API's such as UI (User Interface), telephony, resources, locations, Content Providers (data)
and package managers. It provides a lot of classes and interfaces for android application development.
5) 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.
Step 3: After the downloading has finished, open the file from downloads and run it.Click on next.
Step 5: This will start the Android Studio. Meanwhile, it will be finding the available SDK components.
Step 6: After it has found the SDK components, it will redirect to the Welcome dialog box.
Step 8: Now it is time to download the SDK components.Select The SDK components to download.Click on
Finish. Components begin to download let it complete.
Step 9: Click on Start a new Android Studio project to build a new app
MAD Question bank
OR
2. View
A view is the UI element such as button, label, text field etc. Anything that you see is a view.
3. Intent
4. Service
There are two types of services local and remote. Local service is accessed from within the application whereas
remote service is accessed remotely from other applications running on the same device.
5. Content Provider
6. Fragment
Fragments are like parts of activity. An activity can display one or more fragments on the screen at the same
time.
7. AndroidManifest.xml
It contains informations about activities, content providers, permissions etc. It is like the web.xml file in Java
EE.
It is used to test the android application without the need for mobile or tablet etc. It can be created in different
configurations to emulate different types of real devices.
3. Drawable resources:
Drawable resources are used for images, icons, and other visual elements in the app. They can be in various
formats, such as PNG, JPEG, or XML. Drawable resources are stored in the res/drawable directory and can be
referenced in XML or Java code.
4. Color resources:
Color resources define color values used in the app's UI. They can be used for backgrounds, text, buttons, and
more. Color resources are stored in the res/values/colors.xml file and can be referenced using resource IDs.
5. Dimension resources:
Dimension resources store numeric values, such as sizes and distances, used in the app's UI. They allow for
consistent sizing across different screen sizes and densities. Dimension resources are stored in the
res/values/dimens.xml file and can be referenced using resource IDs.
6. Style resources:
Style resources define a set of attributes that can be applied to Views or ViewGroups. They allow for consistent
styling throughout the app's UI. Style resources are stored in the res/values/styles.xml file and can be applied to
Views using the "style" attribute.