Android

In this Kotlin programming tutorial I am going to share with you how to create a RadioButton in Kotlin programmatically. We will create RadioGroup of 5 radio buttons with one set as default and when the view is loaded the default RadioButton will be selected. You will also learn how to create a RadioButton which…

Read More RadioButton Example in Kotlin

In this Kotlin code example we will learn how to create DatePicker in Kotlin programmatically. To break it in more details the code example below will cover:  Create DatePicker in LinearLayout Initialize DatePicker with current date( Year, Month and Day) When user changes the DatePicker values, call OnDateChangeListener and get input from the DatePicker Set DatePicker values…

Read More Create DatePicker in Kotlin

Below is a very short tutorial on how to create RecyclerView in Kotlin programmatically. RecyclerView is a flexible view for providing a limited window into a large data set and learning how to create and use it make you even better Mobile App Developer :). The Kotlin code example below will cover: Create RecyclerView Create RecyclerAdapter Create a…

Read More Create RecyclerView in Kotlin Programmatically

In this short code example in Kotlin I am going to share with you how to create an EditText programmatically and also how to: Add the created EditText in a ConstraintLayout Set hint text for the TextView Set text color Set EditText backgroundColor Layout XML file for the EditText UI component <?xml version=”1.0″ encoding=”utf-8″?> <android.support.constraint.ConstraintLayout xmlns:android=”http://schemas.android.com/apk/res/android”…

Read More Create EditText in Kotlin Programmatically

In this tutorial, we will use Kotlin to make a simple Android mobile app that will be able to receive push notifications sent from Firebase. I used to call these kind of messages “push messages” but the correct term for this tutorials will probably be a Firebase Cloud Messaging or the FCM which also stands for Firebase Cloud Messaging.  I…

Read More Push Notifications Example with Kotlin and Firebase

To enable or disable android app from being backed up or restored you can use AndroidManifest.xml file and android:allowBackup=”false” which if present and is set to false will prevent even a full-system backup that would otherwise cause all application data to be saved via adb. The default value of this attribute is true.  For example: <?xml version=’1.0’…

Read More android:allowBackup – Enable or Disable Android App Backups