Azhar has Published 721 Articles

How do you animate the change of background color of a view on Android using Kotlin?

Azhar

Azhar

Updated on 26-May-2020 06:59:55

495 Views

This example demonstrates how to animate the change of background color of a view on Android using Kotlin.Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How do I delete SharedPreferences data for my Android App using Kotlin?

Azhar

Azhar

Updated on 26-May-2020 06:55:27

869 Views

This example demonstrates how to delete SharedPreferences data for my Android App using Kotlin.Step 1 − Create a new project in Android Studio, go to File ? New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     ... Read More

How to start a Service at Boot Time in Android App using Kotlin?

Azhar

Azhar

Updated on 26-May-2020 06:42:30

2K+ Views

This example demonstrates how to start a Service at Boot Time in an Android App using Kotlin.Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How to Check if Android EditText is empty in Kotlin?

Azhar

Azhar

Updated on 26-May-2020 06:36:16

1K+ Views

This example demonstrates how to Check if Android EditText is empty in Kotlin.Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         ... Read More

How to get free size of internal/external memory in Android App using Kotlin?

Azhar

Azhar

Updated on 26-May-2020 06:31:24

246 Views

This example demonstrates how to get free size of internal/external memory in Android App using Kotlin.Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

How to set the ringtone in Android from Android activity using Kotlin?

Azhar

Azhar

Updated on 26-May-2020 06:27:26

731 Views

This example demonstrates how to set the ringtone in Android from Android activity using Kotlin.Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     ... Read More

How to set Android Toast duration longer than Toast.LENGTH_LONG using Kotlin?

Azhar

Azhar

Updated on 26-May-2020 06:20:20

281 Views

This example demonstrates how to set Android Toast duration longer than Toast.LENGTH_LONG using Kotlin.Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a new project.Step 2  − Add the following code to res/layout/activity_main.xml.       ... Read More

How to convert a Base64 string into a BitMap image in Android App using Kotlin?

Azhar

Azhar

Updated on 26-May-2020 06:15:06

1K+ Views

This example demonstrates how to convert a Base64 string into a BitMap image in Android App using Kotlin.Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How to get the width and height of an android.widget.ImageView in Kotlin?

Azhar

Azhar

Updated on 26-May-2020 06:10:05

581 Views

This example demonstrates how to get the width and height of an android.widget.ImageView in Kotlin.Step 1 − Create a new project in Android Studio, go to File ? New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

How to set the absolute position of a view in Android using Kotlin?

Azhar

Azhar

Updated on 26-May-2020 06:05:59

512 Views

This example demonstrates how to set the absolute position of a view in Android using Kotlin.Step 1 − Create a new project in Android Studio, go to File? New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. Step 3 ... Read More

Advertisements