Posts

Showing posts with the label Android Architecture Components

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. ...

Android Architecture Components - Android Activities

Image
Android operating system is a stack of software components that are roughly classified into five divisions and four main layers as explained below in the architecture diagram.   Android Architecture Components are Divided in five different layers.  Application - Home, Contacts application Android Framework - This Framework manager our  basic function of our phone. It consists Activity Manager, Windows Manager, Content Providers, View Systems, Resource Managers, Location Managers.  Libraries - This layer consist C/C++ libraries such as Media, SSL, OpenGL, Graphics  Android Runtime - Android Runtime needed for  execute any Android application. Linux Kernel - In Linux Kernal  basic work of a kernel is to to manage balance between hardware and software. So, when we have an application in device when we run it, it occupy CPU and memory. So all these are the work are performed by Kernels like CPU management, memory management, and device management. In t...