0% found this document useful (0 votes)
1 views4 pages

Android Unit1 Unit2 QA

The document provides an overview of Android, detailing its key features, components, and development environment setup. It explains the role of the Dalvik Virtual Machine, the structure of an .apk file, and the purpose of various elements like Intents, Android API Levels, and the AndroidManifest.xml file. Additionally, it covers tools for debugging and testing Android applications, such as Logcat and the Emulator.
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)
1 views4 pages

Android Unit1 Unit2 QA

The document provides an overview of Android, detailing its key features, components, and development environment setup. It explains the role of the Dalvik Virtual Machine, the structure of an .apk file, and the purpose of various elements like Intents, Android API Levels, and the AndroidManifest.xml file. Additionally, it covers tools for debugging and testing Android applications, such as Logcat and the Emulator.
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/ 4

Android Unit 1 & Unit 2 - Questions and Answers

1. What is Android? Name its key features.

Android is an open-source operating system developed by Google, based on the Linux kernel, mainly used in

smartphones and tablets.

Key features:

- Open-source

- Supports Java/Kotlin

- Rich UI components

- Background services

- Inter-app communication

- 2D/3D graphics and media

- Google Play support

2. What is the role of Dalvik Virtual Machine in Android?

The Dalvik Virtual Machine (DVM) is a part of Android that runs apps. It converts Java bytecode into .dex (Dalvik

Executable) files optimized for mobile devices with less memory and power.

3. What is an .apk file?

An .apk (Android Package) file is the final packaged file that contains the complete Android app. It includes code,

resources, assets, and the manifest file. It is used to install apps on Android devices.

4. Explain the 4 main components of an Android application.

1. Activity - Represents a single screen.

2. Service - Runs in the background.

3. BroadcastReceiver - Listens to system events.

4. ContentProvider - Shares data between apps.

5. What are Views and Notifications in Android?

Views are UI elements like TextView, Button, EditText used to build layouts.
Android Unit 1 & Unit 2 - Questions and Answers

Notifications are messages shown outside the app (e.g., in the notification bar).

6. What is the purpose of Intents and Intent Filters?

Intents are used to move from one activity to another or to start services.

Intent Filters define what type of intents an app component can respond to.

7. What are Android API Levels? Give examples.

Each Android version has an API level. It helps developers know which features are available.

Examples:

- Android 10 -> API 29

- Android 11 -> API 30

- Android 12 -> API 31

- Android 13 -> API 33

8. How do you set up the Android development environment?

1. Install Android Studio

2. Install Android SDK

3. Create a new project

4. Use emulator or real device to test

9. What is AndroidManifest.xml? What does it contain?

AndroidManifest.xml is the main configuration file. It contains:

- App name and package

- Components (activities, services)

- Permissions

- Min and target SDK versions

10. What is Gradle and why is it important?


Android Unit 1 & Unit 2 - Questions and Answers

Gradle is the build automation tool used in Android Studio. It:

- Compiles code

- Manages libraries

- Builds the APK

- Handles versioning

11. Explain the purpose of res/, R.java, and assets/ folders.

- res/: stores resources (layouts, images, strings)

- R.java: auto-generated file for resource IDs

- assets/: stores raw files like PDFs, HTML

12. What is the use of uses-permission and uses-sdk in AndroidManifest.xml?

- uses-permission: requests access to features (camera, internet)

- uses-sdk: defines minSdkVersion and targetSdkVersion

13. What is an Emulator? How do you use it?

An Emulator is a virtual Android device used for testing apps on your computer. You create it in Android Studio to run

your app without a real phone.

14. What is Logcat used for?

Logcat is a tool that shows logs and errors while your app runs. It is useful for debugging.

15. What is DDMS and how is it helpful?

DDMS (Dalvik Debug Monitor Server) is used for:

- Monitoring processes

- Debugging

- Viewing memory usage

- Sending data to emulator


Android Unit 1 & Unit 2 - Questions and Answers

16. How do you debug an Android app?

1. Use breakpoints

2. Use Logcat to see logs/errors

3. Step-by-step debugging to trace code

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