0% found this document useful (0 votes)
20 views12 pages

Mad Solved QB

The document provides a comprehensive overview of Android and its development tools, including features of the Android OS, the Android ecosystem, and the architecture of Android applications. It also covers installation and configuration of Android Studio, the use of SDK, emulator, and various UI components and layouts. Additionally, it explains the importance of the AndroidManifest.xml file and the roles of main activity, manifest, string, and layout files in Android app development.

Uploaded by

sr5824241
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)
20 views12 pages

Mad Solved QB

The document provides a comprehensive overview of Android and its development tools, including features of the Android OS, the Android ecosystem, and the architecture of Android applications. It also covers installation and configuration of Android Studio, the use of SDK, emulator, and various UI components and layouts. Additionally, it explains the importance of the AndroidManifest.xml file and the roles of main activity, manifest, string, and layout files in Android app development.

Uploaded by

sr5824241
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/ 12

‭Here are simple answers to all the questions from your question bank:‬

‭Chapter 1: ANDROID AND ITS TOOLS‬

‭2 Marks Questions‬

‭1.‬ ‭Enlist Features Of Android OS?‬

‭ ‬ ‭Open-source‬

‭○‬ ‭Supports multiple languages‬
‭○‬ ‭High security‬
‭○‬ ‭Multi-tasking‬
‭○‬ ‭Customizable UI‬
‭○‬ ‭Supports various sensors‬
‭2.‬ ‭What is OHA?‬

‭○‬ O‭ HA stands for‬‭Open Handset Alliance‬‭, a group of companies‬‭led by Google to‬


‭develop Android OS.‬
‭3.‬ E
‭ nlist Tools To Develop Android Application?‬

‭‬
○ ‭ ndroid Studio‬
A
‭○‬ ‭SDK (Software Development Kit)‬
‭○‬ ‭AVD (Android Virtual Device)‬
‭○‬ ‭Emulator‬
‭○‬ ‭Gradle‬
‭4 Marks Questions‬

‭1.‬ ‭Explain Android Ecosystem?‬

‭ he Android ecosystem includes all the components required for Android apps to‬
T
‭function.‬

‭○‬ H ‭ ardware (Devices) –‬‭Smartphones, tablets, smartwatches, TVs, and IoT‬


‭devices.‬
‭○‬ ‭Operating System (OS) –‬‭Open-source system with different versions (Android‬
‭10, 11, 12, etc.), improving security and performance.‬
‭○‬ ‭Development Tools –‬
‭Android Studio (Official IDE)‬
‭SDK (Libraries & APIs)‬
‭Gradle (Build management)‬
‭AVD (Emulator)‬
‭ADB (Debugging tool)‬
‭○‬ ‭Applications (Play Store & APKs) –‬‭Millions of apps available for download and‬
‭updates via the Play Store or APK files.‬

‭ ndroid provides a powerful, flexible, and open-source platform for users and‬
A
‭developers.‬

‭2.‬ ‭Explain the Android architecture in detail.‬

‭Android architecture has‬‭five layers‬‭, each with a specific role:‬

‭ .‬ L
1 ‭ inux Kernel‬‭– Manages hardware (CPU, memory, drivers)‬‭and handles security.‬
‭2.‬ ‭Native Libraries‬‭– Supports databases (‬‭SQLite‬‭), graphics‬‭(‭O
‬ penGL‬‭), and multimedia‬
‭(‬‭Media Framework‬‭).‬
‭3.‬ ‭Android Runtime (ART/DVM)‬‭– Runs apps efficiently‬‭by converting Java code into‬
‭bytecode.‬
‭4.‬ ‭Application Framework‬‭– Manages app features like‬‭Activities, Notifications, and GPS.‬
‭5.‬ ‭Applications‬‭– User apps (WhatsApp, YouTube) and system‬‭apps (Phone, Messages).‬

‭Each layer ensures‬‭performance, security, and smooth functioning‬‭of Android devices.‬


‭Chapter 2: INSTALLATION & CONFIGURATION OF ANDROID‬

‭2 Marks Questions‬

‭1.‬ ‭What is SDK?‬


‭ DK (Software Development Kit) is a set of tools used to create Android apps. It‬
S
‭includes:‬
‭●‬ ‭Libraries to add features to apps‬
‭●‬ ‭Debugger to find and fix errors‬
‭●‬ ‭Emulator to test apps without a real phone‬
‭●‬ ‭Build tools to compile and run apps‬

‭2.‬ ‭What is Emulator?‬


‭ n‬‭Emulator‬‭is a‬‭virtual mobile phone‬‭on a computer. It helps developers test apps‬
A
‭without using a real device. The emulator can:‬
‭●‬ ‭Show different‬‭screen sizes‬‭and phone models‬
‭●‬ ‭Simulate‬‭hardware features‬‭like camera and GPS‬
‭●‬ ‭Run apps on‬‭different Android versions‬

‭3.‬ ‭What is ADT?‬


‭ DT (Android Development Tools) was a tool used with Eclipse IDE to create Android‬
A
‭apps. It helped with:‬
‭●‬ ‭Writing and testing code‬
‭●‬ ‭Designing app screens‬
‭●‬ ‭Debugging and fixing errors‬
‭4 Marks Questions‬

‭1.‬ ‭Compare JVM and DVM?‬

‭2.‬ ‭Explain DVM With Diagram?‬


‭ VM (‬‭Dalvik Virtual Machine‬‭) is a special virtual machine used in Android to run‬
D
‭applications efficiently on mobile devices. It is designed to use‬‭less memory and‬
‭battery‬‭, making Android apps run smoothly.‬

‭How DVM Works?‬

‭ ava Code‬‭→ Written by the developer.‬


J
‭Java Compiler‬‭→ Converts Java code into‬‭bytecode‬‭(.class files).‬
‭DX‬ ‭Tool‬ ‭(Dalvik‬ ‭Converter)‬ ‭→‬ ‭Converts‬ ‭bytecode‬ ‭into‬ ‭Dalvik‬‭bytecode‬‭(.dex‬
‭files).‬
‭DVM Execution‬‭→ Runs the‬‭.dex files‬‭efficiently on Android devices.‬
‭3.‬ ‭Android SDK Concept‬

‭ ndroid SDK (Software Development Kit)‬‭is a set of tools used to create Android‬
A
‭apps. It provides everything needed to develop, test, and run Android applications.‬

‭Main Components of Android SDK:‬

‭●‬ L ‭ ibraries‬‭– Ready-made code to help with app development (UI, database,‬
‭graphics).‬
‭●‬ ‭Emulator‬‭– A virtual Android phone to test apps without a real device.‬
‭●‬ ‭Debugger‬‭– Helps find and fix errors in the app.‬
‭●‬ ‭Build Tools‬‭– Used to compile and package apps into APK files.‬
‭●‬ ‭API (Application Programming Interface)‬‭– Allows apps to communicate with‬
‭Android features like camera, GPS, and notifications.‬

‭Why is SDK Important?‬

‭‬ H
● ‭ elps developers create Android apps easily.‬
‭●‬ ‭Provides tools to test and debug applications.‬
‭●‬ ‭Ensures apps work on different Android versions and devices.‬

‭4.‬ ‭Write Down Steps How To Create AVD In Android Studio?‬


‭These are the steps to create an AVD (Emulator) in Android Studio:‬
‭●‬ ‭Open Android Studio and go to "Tools" → "AVD Manager".‬
‭●‬ ‭Click on "Create Virtual Device".‬
‭●‬ ‭Select a device model (e.g., Pixel 4, Nexus 5).‬
‭●‬ ‭Choose an Android version (System Image) and click Next.‬
‭●‬ ‭Set AVD Name, RAM, and other settings (optional).‬
‭●‬ ‭Click "Finish" to create the emulator.‬
‭●‬ ‭Select the AVD and click "Run" (Play button) to start it.‬
‭5.‬ ‭Write Down The Steps How To Install Android Studio?‬
‭ hese are the steps to install‬‭Android Studio‬‭on device:‬
T
‭1.‬ ‭Download Android Studio‬

‭ ‬ ‭Go to the official website:‬‭developer.android.com‬



‭○‬ ‭Click‬‭"Download"‬‭and accept the terms.‬
‭2.‬ ‭Run the Installer‬

‭○‬ ‭Open the downloaded file and click‬‭"Next"‬‭to start‬‭installation.‬


‭3.‬ ‭Choose Components‬

‭ ‬ ‭Select‬‭Android Studio‬‭and‬‭Android Virtual Device (AVD)‬‭.‬



‭○‬ ‭Click‬‭"Next"‬‭.‬
‭4.‬ ‭Select Installation Location‬

‭ ‬ ‭Choose where to install Android Studio and click‬‭"Next"‬‭.‬



‭5.‬ ‭Install and Finish Setup‬

‭ ‬ ‭Click‬‭"Install"‬‭and wait for it to complete.‬



‭○‬ ‭Click‬‭"Finish"‬‭to launch Android Studio.‬
‭6.‬ ‭Download SDK and Tools‬

‭‬ O
○ ‭ n the first launch, it will ask to download SDK and necessary tools.‬
‭○‬ ‭Click‬‭"Next"‬‭and wait for installation to finish.‬
‭Chapter 3: UI Components and Layouts‬

‭2 Marks Questions‬

‭1.‬ ‭List layouts in android UI design.‬


‭‬ L
○ ‭ inearLayout – Arranges views in a vertical or horizontal line.‬
‭○‬ ‭RelativeLayout – Positions views relative to each other or the parent.‬
‭○‬ ‭ConstraintLayout – More flexible; allows complex positioning with‬
‭constraints.‬
‭○‬ ‭FrameLayout – Stacks views on top of each other (useful for overlays).‬
‭○‬ ‭TableLayout – Organizes views in rows and columns like a table.‬
‭○‬ ‭GridLayout – Arranges views in a grid pattern with rows and columns.‬

‭2.‬ ‭List different attributes of Frame layout.‬


‭‬
○ ‭ ndroid:layout_width‬‭– Sets the width (e.g.,‬‭
a match_parent‬ wrap_content‬
‭,‬‭ ‭).‬
‭○‬ ‭android:layout_height‬‭– Sets the height of the layout.‬
‭○‬ ‭android:foreground‬‭– Adds a drawable or color over child views.‬
‭○‬ ‭android:background‬‭– Sets a background color or image.‬
‭○‬ ‭android:layout_gravity‬‭– Positions child views (e.g.,‬‭ center‬ ‭,‬‭top‬
‭,‬‭bottom‬
‭).‬
‭○‬ ‭android:padding‬‭– Adds space inside the layout.‬
‭○‬ ‭android:visibility‬‭– Controls visibility (‬‭
visible‬ invisible‬
‭,‬‭ ‭,‬‭ gone‬ ‭).‬

‭3.‬ ‭List different attributes of Table layout.‬

‭TableLayout arranges UI elements in rows and columns, like a table.‬

‭‬ a
● ‭ ndroid:layout_width –‬‭Sets the width (‬‭
match_parent‬ wrap_content‬
‭,‬‭ ‭).‬
‭●‬ ‭android:layout_height –‬‭Sets the height of the layout.‬
‭●‬ ‭android:stretchColumns –‬‭Stretches specific columns to fit the screen (e.g.,‬
"1,2"‬
‭ ‭).‬
‭●‬ ‭android:shrinkColumns –‬‭Shrinks specific columns if needed.‬
‭●‬ ‭android:collapseColumns –‬‭Hides specific columns.‬
‭●‬ ‭android:background –‬‭Sets background color or image.‬
‭●‬ ‭android:padding –‬‭Adds space inside the layout.‬
‭4 Marks Questions‬

‭1.‬ ‭What is use of AndroidManifest.xml file in any android application?‬


‭ he‬‭AndroidManifest.xml‬‭file is very important for every Android app. It gives‬
T
‭necessary information to the Android system about how the app should work.‬

‭Main Uses:‬

‭‬ A
● ‭ pp Name & Icon‬‭– Sets the app’s name and launcher icon.‬
‭●‬ ‭Declare Activities & Services‬‭– Defines the main screen (‬‭
activity‬
‭) and‬
‭ ackground tasks (‬‭
b service‬ ‭).‬
‭●‬ ‭Request Permissions‬‭– Allows the app to use features like:‬
‭○‬ ‭Internet‬‭→ For online access.‬
‭○‬ ‭Camera‬‭→ For taking pictures.‬
‭ ‬ ‭Set Minimum Android Version‬‭– Ensures the app runs on supported Android‬

‭versions.‬
‭●‬ ‭Declare Hardware Features‬‭– Tells if the app needs GPS, Bluetooth, etc.‬

‭ ndroidManifest.xml is like an app’s instruction manual, helping the system‬


A
‭understand how to run it properly.‬

‭2.‬ ‭Explain following files.‬


‭ ‬ ‭I. Main activity file‬

‭○‬ ‭II. Manifest file‬
‭○‬ ‭III. String file‬
‭○‬ ‭IV. Layout file‬
‭I.‬ ‭Main Activity File‬
‭○‬ ‭This is the‬‭main code file‬‭where the app’s functionality is written.‬
‭○‬ ‭It controls how the app behaves when it starts.‬
‭○‬ ‭Written in‬‭Java or Kotlin‬‭.‬
‭○‬ ‭It connects the UI (layout file) with the logic of the app.‬

‭II.‬ ‭Manifest File (AndroidManifest.xml)‬


‭●‬ ‭This is the‬‭configuration file‬‭for the app.‬
‭●‬ ‭It contains important details like:‬
‭○‬ ‭The‬‭app name and icon‬‭.‬
‭○‬ ‭Declares‬‭activities‬‭(screens) and‬‭services‬‭(background tasks).‬
‭○‬ ‭Requests‬‭permissions‬‭like internet, camera, or GPS access.‬
‭●‬ ‭It ensures the Android system understands how the app should work.‬
‭III.‬ ‭String File (strings.xml)‬
‭●‬ ‭Stores‬‭text values‬‭used in the app.‬
‭●‬ ‭Helps in‬‭language translation‬‭and‬‭easier text management‬‭.‬
‭●‬ ‭Instead of writing text directly in the code, we store it here for better organization.‬
‭●‬ ‭Used for things like‬‭app name, button text, error messages, and labels‬‭.‬

‭IV.‬ ‭Layout File (XML File)‬


‭●‬ ‭Defines the‬‭user interface (UI)‬‭of the app.‬
‭●‬ ‭Controls how buttons, text, images, and other UI elements are arranged on the‬
‭screen.‬
‭●‬ ‭Located in the‬‭res/layout‬‭folder.‬
‭●‬ ‭It allows designers and developers to work separately, making app development‬
‭easier.‬

‭3.‬ ‭What are view and viewgroup classes in android? Why layouts are‬
‭created using xml file?‬

‭View and ViewGroup in Android‬

‭1. View Class‬

‭‬ A
● ‭ ‬‭View‬‭is a single UI element like‬‭Button, TextView,‬‭ImageView‬‭.‬
‭●‬ ‭It displays content and allows user interaction.‬

‭2. ViewGroup Class‬

‭‬ A
● ‭ ‬‭ViewGroup‬‭is a container that holds multiple‬‭Views‬‭.‬
‭●‬ ‭Examples:‬
‭○‬ ‭LinearLayout‬‭– Arranges views in a row/column.‬
‭○‬ ‭RelativeLayout‬‭– Positions views relative to each other.‬
‭○‬ ‭ConstraintLayout‬‭– Allows complex layouts.‬
‭Why Use XML for Layouts?‬

‭ .‬
1 ‭ eparates Design & Logic‬‭– UI in XML, functionality in Java/Kotlin.‬
S
‭2.‬ ‭Easy to Modify‬‭– XML is structured and simple to update.‬
‭3.‬ ‭Reusable Layouts‬‭– Same XML can be used for multiple screens.‬
‭4.‬ ‭Faster Development‬‭– Supports‬‭drag-and-drop‬‭designing‬‭in Android Studio.‬
‭5.‬ ‭Better Performance‬‭– Optimized for smooth app functioning.‬

‭4.‬ ‭List and Explain the Resource folder.‬


‭ he‬‭res folder‬‭stores all design-related files for‬‭the app, such as images, layouts, and‬
T
‭text.‬

‭Main Folders in res/‬

‭ .‬ d
1 ‭ rawable/‬‭– Stores images and icons.‬
‭2.‬ ‭layout/‬‭– Contains XML files for designing app screens.‬
‭3.‬ ‭values/‬‭– Stores text, colors, and sizes.‬
‭○‬ ‭strings.xml‬‭– Holds text like app name and button‬‭labels.‬
‭○‬ ‭colors.xml‬‭– Defines app colors.‬
‭○‬ ‭dimens.xml‬‭– Stores sizes like margins and padding.‬
‭4.‬ ‭mipmap/‬‭– Holds app icons in different sizes.‬
‭5.‬ ‭raw/‬‭– Stores audio or video files.‬
‭6.‬ ‭anim/‬‭– Contains animation effects‬
‭Chapter 4: Designing UI with Views‬

‭2 Marks Questions‬

‭1.‬ ‭List view classes in android application development.‬

‭‬
○ ‭ utton‬
B
‭○‬ ‭TextView‬
‭○‬ ‭EditText, ImageView‬
‭○‬ ‭ListView‬
‭○‬ ‭RecyclerView\‬

‭2.‬ ‭Explain attributes wrap_content and match_parent with respect to‬


‭viewgroups.‬

‭1. wrap_content‬

‭‬
● ‭ he view takes only the space needed for its content.‬
T
‭●‬ ‭Example:‬‭A button adjusts its size to fit the text.‬
‭●‬ ‭Used for small elements like buttons and labels.‬
‭●‬ ‭Saves space by not making the view bigger than needed.‬

‭2. match_parent‬

‭‬
● ‭ h‬‭e view expands to fill the entire parent container.‬
T
‭●‬ ‭Example:‬‭A TextView stretches to match the full width.‬
‭●‬ ‭Used for large elements like full-width banners or background images.‬
‭●‬ ‭Ensures consistent design by making the view match the parent size.‬
‭4 Marks Questions‬

‭1.‬ ‭What is TextView & EditText? Explain TextView attributes.‬


‭●‬ ‭What is TextView?‬

‭ extView is a UI component in Android that is used to display text on the screen. It is read-only,‬
T
‭meaning users cannot type or edit the text. It is commonly used to show labels, titles, or‬
‭instructions in an app.‬

‭●‬ ‭What is EditText?‬

‭ ditText is a UI component that allows users to enter and edit text. It is mostly used for input‬
E
‭fields, such as entering a name, email, password, or comments.‬

‭TextView Attributes‬

‭‬
● ‭ ext –‬‭Defines the text displayed in the TextView.‬
T
‭●‬ ‭Text Size –‬‭Controls the size of the text.‬
‭●‬ ‭Text Color –‬‭Changes the color of the text.‬
‭●‬ ‭Gravity –‬‭Aligns the text inside the TextView (left, right, center, etc.).‬
‭●‬ ‭Text Style –‬‭Makes the text bold, italic, or normal.‬
‭●‬ ‭Max Lines –‬‭Limits the number of lines shown in the TextView.‬
‭●‬ ‭Ellipsize –‬‭If the text is too long, it shows "..." at the end.‬
‭●‬ ‭Background –‬‭Sets a background color or image for the TextView.‬

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy