Q.

Which is not an Android component of the following?

A. Layout
B. Service
C. Activity
D. Both A & C
Answer» A. Layout
2k
1
Do you find this helpful?
2

Discussion

G017 Borgave Mahemud
2 years ago

A. Layout is not an Android component.

In Android, the components refer to different types of building blocks that define the behavior and functionality of an application. The components include activities, services, broadcast receivers, and content providers.

- Activities: They represent the user interface and handle user interactions. They are responsible for presenting a visual user interface and managing the application's lifecycle.

- Services: They perform background operations that run independently of the user interface. Services can be used to perform tasks in the background, such as playing music, fetching data from a server, or performing long-running operations.

- Broadcast receivers: They respond to system-wide broadcast announcements or custom broadcast messages sent within the application. They can be used to handle events like incoming SMS messages, network connectivity changes, or battery level changes.

- Content providers: They manage a shared set of data that can
0