Android Components and Activities - Types of Android Components
Android Architecture Components , introduced in Android Jetpack, are a collection of libraries that help you design robust, testable, and maintainable apps. These components make it easier to encapsulate code and resources for things like managing data persistence, lifecycle changes, and inter-process communication (IPC). The architecture components help you design your app in a way that is adaptable to different configurations and different devices without adding unnecessary complexity. Types of Android Components 1. Activity lifecycle in Android 2. Services in Android 3. Broadcast Receiver in Android 4. Content Provider in Android Components Description Activity They dictate the UI and handle the user interaction to the smart phone screen. Services They handle background processing associated with an application. Broadcast Receiver They handle communication between Android OS and applications. Content Provider They handle data and database management issues. ...