How to Get App Install and Uninstall Events in Android?

App Install and Uninstall Events Android

In this article, you will learn how to get the app install and uninstall events in Android. To get the install and uninstall events, we can use intents like ACTION_PACKAGE_ADDED with the broadcast receivers. But, starting from Oreo (Android 8, API level 26), Google imposed restrictions on the receivers. They introduced getChangedPackages() API in Android … Read more

How to Check Internet Connection in Android Programmatically?

How to Check Internet Connection in Android

Today, you will learn how to check the internet connection in Android. We will also see how to test if the connected network has access to the internet. If you don’t want to read the explanation, jump to the final code. For this article, create a method called isDeviceOnline() in your MainActivity. If the user … Read more

Android Service Activity Communication (5 Ways)

Android Service Activity Communication

In this article, you will learn different methods to establish two-way communication between the Android Service and Activity. Prerequisites: Activity Lifecycle Basics of Services These are the methods we will explore: Create Static Variables and Methods Create a Bound Service Use Intent to Send Data to Service Create Singleton Instance of the Service Use Broadcast … Read more

How to Implement updateTransition API in Jetpack Compose

jetpack compose update transition

Today, we will learn how to implement the updateTransition API in Android Jetpack Compose. Prerequisites: State Management in Jetpack Compose Different animationSpec APIs Jetpack Compose updateTransition(): The updateTransition() API allows us to animate multiple values at a time. For this article, let’s create this UI: When the image is small, the size is 90.dp, and … Read more

How to Animate Content Changes in Jetpack Compose?

Animate Content Changes Jetpack Compose

In this article, we will learn how to animate content changes in Jetpack Compose using the AnimatedContent() and animateContentSize() composables. Prerequisites: State Management in Jetpack Compose Row, Column, and Box Layouts AnimatedContent: AnimatedContent composable animates the content changes. Currently, it is experimental. Let’s understand it with an example. Output: Let’s animate the count value. Wrap … Read more

How to Animate Visibility in Jetpack Compose?

jetpack compose animate visibility

Today, we will learn how to animate the visibility of elements in Jetpack Compose using the AnimatedVisibility composable. Prerequisites: Jetpack Compose State Management Row, Column, and Box with Examples Jetpack Compose Animate Visibility: Jetpack Compose provides AnimatedVisibility composable. It animates the appearance and disappearance of its content. Let’s understand it with an example. Look at … Read more

Jetpack Compose Custom Radio Button UI with Source Code

jetpack compose custom radio button

This is a custom radio button UI design made with Android Jetpack Compose. It displays a list of dogs along with their image, name, and pricing. You can download the source code below. The UI displays a list of dogs. Each item in the radio group consists of the image, name, age, and cost. I … Read more

Jetpack Compose Navigation Drawer with Scaffold Example

jetpack compose navigation drawer

This is a navigation drawer UI made with Android Jetpack Compose. It uses the Scaffold layout. The source code is available for free below. The navigation drawer is made with several APIs like Scaffold, LazyColumn list, Image, Icon, Text, Coroutines, TopAppBar, etc. It consists of the user’s image, name, email, and options like home, notifications, … Read more

3 Ways to Disable the Ripple Effect in Jetpack Compose

jetpack compose disable ripple

Today, you will learn how to disable or remove the ripple effect in Android Jetpack Compose. These are the 3 methods we will discuss: Using the Mutable Interaction Source Create a Custom MutableInteractionSource Class Create a Custom No Ripple Theme 1. Using the Mutable Interaction Source: You can use this method if you set the … Read more

How to Implement Radio Button in Jetpack Compose?

jetpack compose radio button

In this article, we will learn how to implement the radio button and radio group in Jetpack Compose. Prerequisites: State Handling in Jetpack Compose Column, Row, and Box What is the Radio Button in Android? Radio buttons allow users to select a single option from a list. Example: Jetpack Compose provides RadioButton API: selected – … Read more