0% found this document useful (0 votes)
2 views

Android UT2 QA Part1

The document outlines key concepts in Android development, including the creation and use of intents, types of intents, and their applications such as starting activities and services. It also explains the significance of content providers, lists various sensors, defines fragments and broadcast receivers, and mentions classes for media playback. Additionally, it describes the role of services and provides an overview of the activity life cycle methods.
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)
2 views

Android UT2 QA Part1

The document outlines key concepts in Android development, including the creation and use of intents, types of intents, and their applications such as starting activities and services. It also explains the significance of content providers, lists various sensors, defines fragments and broadcast receivers, and mentions classes for media playback. Additionally, it describes the role of services and provides an overview of the activity life cycle methods.
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/ 2

1. Write down syntax to create an intent and start another activity.

Intent intent = new Intent(CurrentActivity.this, TargetActivity.class);

startActivity(intent);

2. State intent. List types of intent.

Intent: An intent is a messaging object used to request an action from another app component.

Types:

- Explicit Intent

- Implicit Intent

3. State the uses of Intent in Android.

- Start activities

- Start services

- Deliver broadcasts

- Pass data between activities

4. Explain the significance of content provider.

A Content Provider manages access to a structured set of data. It enables data sharing between

applications and handles CRUD operations.

5. List different types of sensors used in Android.

- Accelerometer

- Gyroscope

- Proximity sensor

- Light sensor

- Magnetometer

- Temperature sensor

6. Define: i) Fragment ii) Broadcast receiver

i) Fragment: A reusable portion of the UI in an activity.

ii) Broadcast Receiver: A component that responds to broadcast messages from other apps or the

system.
7. Name two classes used to play audio and video in Android.

- MediaPlayer

- VideoView

8. State the use of fragments in Android App development.

Fragments allow for modular UI design and can be reused in multiple activities, enabling flexible UI

for different screen sizes.

9. Define service in Android operating system.

A Service is a component that performs background operations without a user interface.

10. Draw and explain activity life cycle.

Main methods of Activity Life Cycle:

- onCreate()

- onStart()

- onResume()

- onPause()

- onStop()

- onDestroy()

You might also like