0% found this document useful (0 votes)
14 views3 pages

MAD Viva Questions Answers

The document provides an overview of Android basics, including its architecture, components like Activities and Intents, and the role of the Dalvik Virtual Machine. It also covers emulator usage, app development concepts, preferences, SQLite database management, and threading in Android applications. Key terms such as APK files, Broadcast Receivers, and Adapters are explained, highlighting their functions and differences.

Uploaded by

riyasisodia07
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)
14 views3 pages

MAD Viva Questions Answers

The document provides an overview of Android basics, including its architecture, components like Activities and Intents, and the role of the Dalvik Virtual Machine. It also covers emulator usage, app development concepts, preferences, SQLite database management, and threading in Android applications. Key terms such as APK files, Broadcast Receivers, and Adapters are explained, highlighting their functions and differences.

Uploaded by

riyasisodia07
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/ 3

UNIT I: Android Basics

- What is Android? - Android is an open-source mobile operating system developed by Google for

touchscreen devices.

- What is the role of Dalvik Virtual Machine in Android? - Dalvik VM was used to run Android apps

before Android 5.0; it converts bytecode into native code for execution.

- What is an APK file? - APK (Android Package Kit) is the file format used to distribute and install

applications on Android devices.

- Explain the Android application structure. - It includes the manifest file, Java source files, resource

folders (res), compiled files, and the APK.

- What is an Activity and its lifecycle? - An Activity is a single screen in an app. Lifecycle stages

include onCreate(), onStart(), onResume(), onPause(), onStop(), and onDestroy().

- What are Intents and Intent Filters? - Intents are messaging objects used to request actions. Filters

specify the types of intents a component can handle.

- What are Broadcast Receivers? - Components that respond to system-wide broadcast messages

like battery low or network change.

- What is the function of AndroidManifest.xml? - It declares app components, permissions, and other

configuration details.

- Difference between uses-permission and uses-sdk - uses-permission declares required

permissions; uses-sdk sets the minimum and target API levels.

- What are Resources and R.java? - Resources include images, strings, layouts. R.java is a

generated class that links resources to code.

UNIT II: Emulator & App Development

- What is an Android Virtual Device (AVD)? - AVD is an emulator configuration that mimics a real

Android device.

- How to launch and edit an emulator? - Use AVD Manager in Android Studio to create, launch, or

edit emulator settings.

- What is the use of DDMS? - Dalvik Debug Monitor Server helps in debugging Android apps by
providing features like thread and heap info.

- What is the second app concept (activity switching)? - It refers to starting a new activity from one

app using intents.

- How do you pass data using intents? - Use putExtra() method to add data and

getIntent().getExtras() to retrieve it.

- What are form widgets and text fields? - UI elements like EditText, Button, Checkbox used for user

input.

- What is the difference between dp, dip, and sp? - dp and dip are density-independent pixels; sp is

scale-independent pixels used for text size.

UNIT III: Preferences & SQLite

- What are SharedPreferences in Android? - Key-value pairs storage for app settings or user

preferences.

- How to create a menu and submenu? - Define items in XML or code and use

onCreateOptionsMenu() to display them.

- What is the difference between Explicit and Implicit Intents? - Explicit intents target a specific

component; implicit intents declare a general action.

- What is SQLite and why is it used in Android? - A lightweight embedded database used for storing

structured data locally.

- What is SQLiteOpenHelper? - A helper class to manage database creation and version

management.

- How do you read and update contacts using SQLite? - Use SQL queries with cursor and update

methods inside SQLiteDatabase.

- What is the use of cursors in Android? - Cursors allow traversal over rows returned by a database

query.

UNIT IV: Adapters and Threads

- What is an Adapter in Android? - A bridge between UI components and data sources, e.g.,

ListView.
- Difference between ArrayAdapter and BaseAdapter - ArrayAdapter is simpler, used for single list

items; BaseAdapter offers more customization.

- How is ListView different from GridView? - ListView displays items in a single column; GridView in

a grid format.

- What is a Broadcast Receiver? - It listens for system-wide events (e.g., battery low, SMS

received).

- What is a Toast in Android? - A short popup message used for showing quick feedback to users.

- Explain the use of Threads in Android - Used to perform background tasks to avoid blocking the

main UI thread.

- What is AsyncTask and how does it work? - A class for background tasks, with methods like

doInBackground() and onPostExecute().

- What is the difference between UI Thread and Worker Thread? - UI thread handles user

interactions; worker thread handles background processing.

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