Kotlin

Language Identification with ML Kit on Android

This post is about how to setup ML Kit’s language Identification feature in Android application with the help of simple demo app. ML Kit’s Language Identification API ML Kit’s language Identification API allows you to identify the language of a string of text. You can get the string’s most likely language as well as confidence […]

Language Identification with ML Kit on Android Read More »

Android Scanning Barcode/QR code using Google ML Kit and CameraX

This post is about, how to implement Barcode scanning using Google ML Kit’s Barcode Scanning API and Jetpack CameraX with the help of simple application.    CameraX CameraX is a Jetpack support library, built to help you make camera app development easier. It is based on use cases that is lifecycle-aware. These use cases work

Android Scanning Barcode/QR code using Google ML Kit and CameraX 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 read a file from assets in java/Kotlin

This article is about how to read a file from the assets folder in android in both languages Java/Kotlin. Creating Assets folder and a file 1. To create an asset folder in Android studio open your project in Android mode. Go to the app > right-click > New > Folder > Assets Folder.   2. Android Studio will

Android read a file from assets in java/Kotlin Read More »

Android BottomNavigationView Example in Kotlin

This article is about Android BottomNavigationView (represents a standard bottom navigation bar for application) and how to combine it with Fragments with the help of a simple application.

Android BottomNavigationView Example in Kotlin Read More »

Kotlin Set

In this tutorial, we will talk about Kotlin Set with the help of simple examples. Sets are: An unordered collection of elements. Duplicate elements are not allowed in sets. In Kotlin, we can have both a mutable set and an immutable set. Kotlin Immutable Set The immutable set also known as read-only set support only read-only access to the set. Immutable set

Kotlin Set Read More »

Kotlin Map

In this tutorial, we will talk about Kotlin Map with the help of simple examples. Map Maps are used to store key and value pairs. In Map: key and value are user defined. The key should be unique and only one value can be stored for each unique key. Values can be duplicate. A key value

Kotlin Map Read More »