0% found this document useful (0 votes)
6 views6 pages

CH 1

The document provides an overview of various Android concepts including Activity and Service definitions, their lifecycle, the significance of the Android Manifest file, and the use of strings.xml for managing string resources. It also discusses Android Virtual Devices (AVD), Fragments, and the Bundle class for data transfer between components. Additionally, it highlights the advantages of the Android operating system and the architecture of Android applications.

Uploaded by

Aesha Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views6 pages

CH 1

The document provides an overview of various Android concepts including Activity and Service definitions, their lifecycle, the significance of the Android Manifest file, and the use of strings.xml for managing string resources. It also discusses Android Virtual Devices (AVD), Fragments, and the Bundle class for data transfer between components. Additionally, it highlights the advantages of the Android operating system and the architecture of Android applications.

Uploaded by

Aesha Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Ch1

What is the use of string.xml? 03

(c) Explain the activity life cycle in android with example. 07

OR Q.2 (a) What is Service? Differentiate between Activity and Service. 03

(b) What are fragments? Explain fragments life cycle. 04

Explain Android Virtual Devices (AVD). 03

W23

.1 (a) Explain DVM. 03

(b) State the significance of Android Manifest file? 04

(Define Activity and Activity lifecycle. Draw and mention the significant role of each state. 07
Q.2 (a) Discuss Fragments in Android? 03

(b) What is AVD? Explain the process of creating AVD in Android application development.
04 (c) What is Android? Explain Android Architecture with neat diagram. 07

W22

What are the advantages of android operating system? 03

(b) List and Explain components of android SDK. 04

(c) Explain the android architecture in detail. 07

Explain Android Virtual Devices (AVD). 03

Explain AndroidManifest.xml file. 03

S24

Give the significance of Bundle in Android App. 03

Explain Android activity life cycle. 07

S23

Briefly explain Android manifest file. 04

(c) Explain Android activity life cycle. 07

Q.2 (a) How Bundle can be used in Android App? 03

(b) Differentiate between Activity and Fragment with respect to Android App.04

S22

What is Service? Differentiate between Activity and Service. 03

(b) What is AVD? Explain the process of creating AVD in Android application.

(c) Write a note on: “Android Framework”. 07

Q.2 (a) Explain DVM. 03

(c) Draw & Explain Android architecture. 07

(c) Write a note on: Activity Life Cycle. 07


🧾 1. Android Activity & Activity Life Cycle

Definition and Life Cycle Explanation:

 W23 (c): Explain the activity life cycle in Android with example. (07 Marks)

 W23 Q.1 (Define Activity and Activity lifecycle. Draw and mention the significant
role of each state.) (07 Marks)

 S24: Explain Android activity life cycle. (07 Marks)

 S23 (c): Explain Android activity life cycle. (07 Marks)

 S22 (c): Write a note on: Activity Life Cycle. (07 Marks)

📦 2. Fragments & Fragment Life Cycle

 W23 Q.2 (b): What are fragments? Explain fragments life cycle. (04 Marks)

 W23 Q.2 (a): Discuss Fragments in Android? (03 Marks)

 S23 (b): Differentiate between Activity and Fragment with respect to Android App.
(04 Marks)

⚙️3. Android Service vs Activity

 W23 Q.2 (a): What is Service? Differentiate between Activity and Service. (03 Marks)

 S22 (a): What is Service? Differentiate between Activity and Service. (03 Marks)

💽 4. AVD – Android Virtual Device

 W23: Explain Android Virtual Devices (AVD). (03 Marks)

 W23 Q.2 (b): What is AVD? Explain the process of creating AVD in Android
application development. (04 Marks)

 S22 (b): What is AVD? Explain the process of creating AVD in Android application. (04
Marks)

📜 5. AndroidManifest.xml

 W23 (b): State the significance of Android Manifest file. (04 Marks)

 S23: Briefly explain Android manifest file. (04 Marks)

 S24: Explain AndroidManifest.xml file. (03 Marks)

📂 6. Bundle in Android

 S24: Give the significance of Bundle in Android App. (03 Marks)

 S23 Q.2 (a): How Bundle can be used in Android App? (03 Marks)
🧠 7. DVM – Dalvik Virtual Machine

 W23 (a): Explain DVM. (03 Marks)

 S22 Q.2 (a): Explain DVM. (03 Marks)

📱 8. Android & Its Architecture

 W23 Q.2 (c): What is Android? Explain Android Architecture with neat diagram. (07
Marks)

 S22 (c): Draw & Explain Android architecture. (07 Marks)

 W22 (c): Explain the android architecture in detail. (07 Marks)

📶 9. Android SDK Components

 W22 (b): List and Explain components of android SDK. (04 Marks)

📈 10. Android OS Advantages

 W22 (a): What are the advantages of android operating system? (03 Marks)

🧰 11. Android Framework

 S22 (c): Write a note on: “Android Framework”. (07 Marks)

📁 12. strings.xml File

 W23 Ch1: What is the use of string.xml? (03 Marks)

✅ What is a Service in Android?

A Service is an Android component that performs long-running operations in the


background without a user interface (UI). It continues to run even if the user switches to
another app.

🔧 Common Uses of Services:

 Playing music in the background

 Downloading/uploading files

 Fetching data from the internet periodically

 Tracking location continuously


🆚 Difference Between Activity and Service

Feature Activity Service

UI Presence Has a user interface (UI). Runs in the background with no UI.

User Allows direct interaction with the


Cannot interact directly with the user.
Interaction user.

Lifecycle depends on user Lifecycle is independent of user


Lifecycle
navigation. interface.

Used for presenting screens and Used for background tasks (e.g., music,
Use Case
getting input. downloads).

Ends when user exits or system Can keep running even when app is
Termination
kills it. closed (if needed).

Main (UI) thread unless Can run on background thread using


Runs On
otherwise specified. IntentService or Thread.

Start Method startActivity(Intent) startService(Intent) or bindService()

✅ Example Scenarios:

Scenario Use Activity or Service?

User fills a form and submits Activity

Music keeps playing after switching apps Service

App checks weather updates every hour Service

Login or Signup screen Activity

Would you like a simple code example of a Service to understand better?

✅ Significance of Bundle in Android App (3 Marks)


In Android, a Bundle is a key-value pair data structure used to pass data between different
components like Activities, Fragments, or Services. It plays a crucial role in saving and
transferring app state and data.

📌 Key Significance of Bundle:

🔹 1. Data Transfer Between Activities/Fragments

 Bundle allows passing of primitive types, Strings, Serializable or Parcelable objects.

 Example:

 Intent intent = new Intent(this, SecondActivity.class);

 Bundle bundle = new Bundle();

 bundle.putString("username", "JohnDoe");

 intent.putExtras(bundle);

 startActivity(intent);

🔹 2. Saving State in Lifecycle Methods

 Used in onSaveInstanceState() to preserve UI state during configuration changes like


screen rotation.

 Example:

 @Override

 protected void onSaveInstanceState(Bundle outState) {

 outState.putInt("score", currentScore);

 super.onSaveInstanceState(outState);

 }

🔹 3. Passing Arguments to Fragments

 Fragments receive data using setArguments(Bundle) and getArguments().

 Example:

 Fragment fragment = new MyFragment();

 Bundle args = new Bundle();

 args.putInt("user_id", 123);

 fragment.setArguments(args);

🔹 4. Inter-process Communication

 Bundles are used in Intent and Messenger for passing data between components or
services.

🟢 In Summary:
The Bundle class is essential for data sharing and state preservation in Android applications,
making it a key tool in effective app component communication.

Let me know if you'd like this turned into a short-answer format or expanded into an
assignment answer.

✅ What is the use of strings.xml in Android? (3 Marks)

In Android, the strings.xml file is used to define and manage all string resources (text
content) for the application in a centralized and organized way.

📌 Key Uses of strings.xml:

🔹 1. Centralized Text Management

 All UI text such as labels, messages, button text, and headings are stored in
res/values/strings.xml.

 This improves code readability and maintainability.

🔹 2. Supports Localization

 It allows developers to create multiple versions of strings.xml for different languages,


enabling multilingual support in apps.

🔹 3. Easy Reusability

 Strings can be reused across multiple layouts or activities, reducing duplication.

 Example:

 <string name="app_name">MyApp</string>

Used in code:

String appName = getString(R.string.app_name);

🔹 4. Separation of UI and Logic

 Keeps the UI text separate from the Java/Kotlin code, following best practices for app
design.

✅ In Summary:

The strings.xml file plays a vital role in maintaining, reusing, and localizing text content in
Android apps efficiently.

Would you like a sample strings.xml file or an example showing multilingual support?

You might also like