Azhar has Published 721 Articles

How to obtain the phone number of the Android phone programmatically using Kotlin?

Azhar

Azhar

Updated on 23-May-2020 13:53:44

3K+ Views

This example demonstrates how to obtain the phone number of the Android phone 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.Example   ... Read More

How to check Android Phone Model programmatically using Kotlin?

Azhar

Azhar

Updated on 23-May-2020 13:50:05

1K+ Views

This example demonstrates how to check Android Phone Model 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.Example           ... Read More

How to get the Touch position on an android device using kotlin?

Azhar

Azhar

Updated on 23-May-2020 13:46:42

646 Views

This example demonstrates how to get the Touch position on an android device 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.Example     ... Read More

How can I define underlined text in an Android layout xml file using Kotlin?

Azhar

Azhar

Updated on 23-May-2020 13:43:19

1K+ Views

This example demonstrates how to define underlined text in an Android layout xml file 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.Example ... Read More

How to request Location Permission at runtime on Kotlin?

Azhar

Azhar

Updated on 23-May-2020 13:38:23

8K+ Views

This example demonstrates how to request Location Permission at runtime on 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.Example         Step ... Read More

How to change the background color of ListView items on Android Kotlin?

Azhar

Azhar

Updated on 23-May-2020 13:33:20

1K+ Views

This example demonstrates how to change the background color of ListView items on 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.Example     ... Read More

How to add new contacts in Android App using Kotlin?

Azhar

Azhar

Updated on 23-May-2020 13:28:28

1K+ Views

This example demonstrates how to determine if network type (2G, 3G or 4G) 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.Example   ... Read More

How to determine if network type (2G, 3G or 4G) in Android Kotlin?

Azhar

Azhar

Updated on 23-May-2020 13:21:44

499 Views

This example demonstrates how to determine if network type (2G, 3G or 4G) 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.Example     ... Read More

How to display animated GIF images in Android using Kotlin?

Azhar

Azhar

Updated on 23-May-2020 13:16:56

4K+ Views

This example demonstrates how to display animated GIF images 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 dependency in build.gradle (module:app)implementation 'com.github.bumptech.glide:glide:4.9.0'Step 3 − Add ... Read More

How to call a method after a delay in Android Kotlin?

Azhar

Azhar

Updated on 23-May-2020 13:13:30

871 Views

This example demonstrates how to call a method after a delay 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.Example       ... Read More

Advertisements