In this article, we will learn the easiest way to load Gif Images in ImageView in Android. We will use Glide Image loading & caching library to load Gif in Android. As we all now that directly we cannot load a Gif image in ImageView in Android. So mostly it’s suggested to use Webview to […]
How to Change Tint Color for an Image in Android
In this article, we will discuss how to change Tint Color for an Image in Android programmatically as well as in XML. Tint color means when we want to change the color of the image while rendering in ImageView. In XML is very easy to change tint color by just setting up the attribute android:tint=”” […]
Upload Image or File to Server in Android Kotlin
In this article, we will discuss the easiest way to upload all types of files, images, videos, pdf, and all other to the server in Android using Kotlin. We are going to upload file to Server in Android Kotlin using OKHTTP multipart request. In the following, the code is shared in the form of Utility […]
Convert Bitmap to File in Android – JAVA & Kotlin
It’s a common requirement in Android Apps to save images as files in external storage and get a File reference from that saved location. Usually, we have images in the form of Bitmap in Android. In the following article, we will discuss how to Convert Bitmap to File in Android in both Java & Kotlin. […]
Capitalize First Letter of String in Android – Kotlin & Java
If we have a String in Kotlin or in Java in Android and we need to capitalize the first letter of the string, we don’t have any built-in method for the purpose. You can use the following methods to capitalize the first letter of String in Android in both Java & Kotlin. Capitalize First Letter […]
Utility Class to Get Screen Width & Height in Kotlin Android
It’s a common requirement to get screen width or height for Android developers in their Apps. In this article, I am sharing a simple utility class that will help you to get screen width & height in Kotlin Android. Just copy and paste the following utility class in your Kotlin project and it will get […]
Capture Video From Camera in Kotlin Android
In this article, we will discuss how to open the Default camera App in our App to capture video from the camera in Kotlin Android. After capturing video from the camera we will also play that video in the device’s default video player to check is the video recorded and saved perfectly. Following is the […]
Pick Video From Gallery in Kotlin Android
In this article, we will discuss how we can pick a video from Gallery in Kotlin and then how we can play that chosen video in the phone’s default video player. You can follow the steps given below to pick all types of videos from the Gallery in Kotlin Android. 1. Open Gallery to Pick […]
Get Path From URI In Kotlin Android
When we pick an image, video, audio, or any other file from the gallery or documents directory we receive URI in intent in the onActivityResult(…) method. So we always further required to get a full file path from that URI. If we directly try to get the path through URI.getData() method, it doesn’t serve the […]
Pick Multiple Images From Gallery in Kotlin – Android
It’s a common requirement in Mobile Apps to pick an image from the Phone Gallery. Sometimes we also have to pick multiple images at a time from the Gallery. This article explains how you can pick multiple images from the Gallery at a time in Kotlin Android. If you are looking to pick just one […]