Azhar has Published 721 Articles

How to create EditText accepts Alphabets only in Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 15:18:29

113 Views

This example demonstrates how to create EditText accepts Alphabets only 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 can I generate random numbers in a given range in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 15:17:52

375 Views

This example demonstrates how to generate random numbers in a given range in Android using KotlinStep 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 add a TextView to a LinearLayout dynamically in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 15:16:21

1K+ Views

This example demonstrates how to add a TextView to a LinearLayout dynamically 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 can I get the current Android SDK version programmatically using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 15:13:13

955 Views

This example demonstrates how toStep 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 − Add the following code ... Read More

How to send a SMS using SMSmanager in Dual SIM mobile in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 15:10:41

718 Views

This example demonstrates how to send a SMS using SMSmanager in Dual SIM mobile 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 ... Read More

How to implement an endless list with RecyclerView in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 15:09:00

1K+ Views

This example demonstrates how to implement an endless list with RecyclerView 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 can I display Toast messages from a thread in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 15:06:09

314 Views

This example demonstrates how to display Toast messages from a thread 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 create Horizontal ListView in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 15:05:01

908 Views

This example demonstrates how to create Horizontal ListView 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

How to send data back to the Main Activity in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 15:03:07

782 Views

This example demonstrates how to send data back to the Main Activity in Android using KotlinStep 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 register a broadcast receiver Programmatically in Android using Kotlin?

Azhar

Azhar

Updated on 05-Nov-2020 15:00:53

1K+ Views

This example demonstrates how to register a broadcast receiver 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

Previous 1 ... 6 7 8 9 10 ... 73 Next
Advertisements