How to Save And Retrieve Class Object From Shared Preferences Using Gson Library in Kotlin

In this article, we will learn how to Save And Retrieve Class Object From Shared Preferences Using Gson Library in Kotlin. Many times, we need to save an instance of a class that has only fields like Int, Long, Float, Double, String, Boolean and objects of different classes. We use the GSON library that helps us to convert the model class to […]

Regex in Kotlin Android Studio

In this article, we will learn about Regex in Kotlin. Regex is used to refer to a regular expression that is used to search a string or replace a pattern in a String. To use it, we need Regex(pattern: String) class and  Kotlin.regex.text package. Constructor Regex(pattern: String) It will give string pattern. Regex(pattern: String, option: […]

Check if the Internet is Connected in Kotlin

Today we will discuss how to check Internet Connection availability from your Android applications. This is a step-by-step Tutorial in the Kotlin language. Let’s learn How To Check the Internet is Connected in Kotlin. Determine the Status of Internet Connection In android, we can determine the internet connection status easily by using the method of ConnectivityManager object. Following is the […]

Begin typing your search term above and press enter to search. Press ESC to cancel.