Jetpack

Bottom Navigation in Jetpack Compose Android

This post is about how to add bottom navigation in Jetpack Compose using navigation compose.   Creating New Project 1 . Create a new project by going to File ⇒ New Android Project, select Empty Compose Activity, provide app name and then finally click on finish. 2 . Open app-level build.gradle file and under the dependencies section add the below navigation-compose …

Bottom Navigation in Jetpack Compose Android Read More »

Android Navigate with arguments in Jetpack Compose

This post is about how to pass arguments/data between composable destinations and add optional arguments using Navigation compose. Let’s understand how to pass data between composable destinations and add optional arguments with the help of examples. Creating New Project 1 . Create a new project by going to File ⇒ New Android Project, select Empty Compose Activity, …

Android Navigate with arguments in Jetpack Compose Read More »

State and State Hoisting in Android Jetpack Compose

This article is about how to manage the state in Android Jetpack Compose, state hoisting (stateless composable), and stateful versus stateless composable. What is State in Jetpack Compose? The state is an object that is connected/subscribed to one or more widgets, contains data, and is eager to update the widgets from that data. If there’s …

State and State Hoisting in Android Jetpack Compose Read More »

Pass data between destinations using Navigation in Android

This post is about how to pass data between destinations using Android Jetpack Navigation.   Use Safe Args to pass data The Navigation component has a Gradle plugin called Safe Args that generates simple object and builder classes that enable type-safe navigation and argument passing between destinations. Safe Args is strongly recommended for navigating and …

Pass data between destinations using Navigation in Android Read More »

Android Jetpack Navigation Example

This post is about Android Jetpack Navigation and how to set up and work with the Navigation component.   Jetpack Navigation Navigation refers to the interactions that allow users to navigate across, into, and back out from the different pieces of content within your app. Android Jetpack’s Navigation component helps you implement navigation, from simple …

Android Jetpack Navigation Example Read More »

Android Paging 3 Example Using Retrofit

This post is about Android Jetpack Paging 3 library and how we can use it to load the large set of data from network using Retrofit in our RecyclerView efficiently with the help of AndroidPagingExp application.   Android Paging  The Paging library helps you load and display pages of data or small chunks of data …

Android Paging 3 Example Using Retrofit Read More »

Android Jetpack CameraX Example

This post is about Android Jetpack CameraX API and how to implement it in an android application with a simple basic example. CameraX CameraX is a Jetpack support library, makes it easier to add camera capabilities to your app. It has backward compatibility down to Android API 21. It uses a simpler, use case-based approach …

Android Jetpack CameraX Example Read More »

Android Jetpack Proto DataStore Example

This blog is about Android Jetpack Proto DataStore and how to implement Proto DataStore in our Android application. Proto DataStore Proto DataStore stores data as objects of a custom data type. When using Proto DataStore, you have to define a schema using protocol buffers. Creating New Project 1 . Create a new project by going to File ⇒ New …

Android Jetpack Proto DataStore Example Read More »

Android Jetpack Preferences DataStore Example

This blog is about Android Jetpack DataStore Preferences and how to implement DataStore Preferences in our Android application. DataStore Jetpack DataStore is a data storage solution. It allows us to store key-value pairs (like SharedPreferences) or typed objects with protocol buffers (discuss in the next article). DataStore uses Kotlin, Coroutines and Flow to store data asynchronously with consistency …

Android Jetpack Preferences DataStore Example Read More »

Android working with observable data objects using DataBinding

Observable Data Object refers to the capability of an object to notify others(listeners) about the changes in its data. The data binding library allows us to make objects, fields, or collections observable. Any plain-old object can be used for data binding, but modifying the object doesn’t automatically cause the UI to update. Data binding can …

Android working with observable data objects using DataBinding Read More »