What are the four major components of Android?
The four main components of Android include: Activity, Service, BroadcastReceiver, and ContentProvider. Activity is used to create the user interface of an application, with each screen being an Activity. Service runs in the background to perform long-running operations without a user interface. BroadcastReceiver is used to receive and respond to system broadcasts or custom broadcast messages within an application, allowing communication within or between applications. ContentProvider is used to manage an application’s data and allows different applications to share data, providing a set of standard interfaces for CRUD operations on the data.