Azhar has Published 721 Articles

How to get the device's IMEI/ESN programmatically in android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 14:45:54

2K+ Views

This example demonstrates how to get the device's IMEI/ESN programmatically 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.     ... Read More

How to listen for a WebView finishing loading a URL in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 14:45:09

597 Views

This example demonstrates how to listen for a WebView finishing loading a URL 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. ... Read More

How do I use InputFilter to limit characters in an EditText in Android Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 14:42:41

1K+ Views

This example demonstrates how to use InputFilter to limit characters in an EditText in Android 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 pixels to dp in an Android App using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 14:40:46

597 Views

This example demonstrates how to convert pixels to dp 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 show current location on a Google Map on Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 14:40:08

4K+ Views

This example demonstrates how to show current location on a Google Map 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.Step 3 ... Read More

How to get the IP address of the Android device programmatically using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 14:37:08

3K+ Views

This example demonstrates how to get the IP address of the Android device programmatically 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 retrieve Android API version programmatically using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 14:36:13

555 Views

This example demonstrates how to retrieve Android API version programmatically 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 draw a line in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 14:35:29

974 Views

This example demonstrates how to draw a line 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.         ... Read More

How to rotate an image in imageview by an angle on Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 14:34:35

781 Views

This example demonstrates how to rotate an image in imageview by an angle 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 to set the color of TextView span in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 13:07:02

679 Views

This example demonstrates how to set the color of TextView span 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.   ... Read More

Advertisements