Azhar has Published 721 Articles

How to use a simple SQLite database in Kotlin android?

Azhar

Azhar

Updated on 20-Apr-2020 13:24:24

5K+ Views

This example demonstrates how to use a simple SQLite database in Kotlin android.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.                                    

How can I get the current time and date in Kotlin?

Azhar

Azhar

Updated on 20-Apr-2020 13:15:21

1K+ Views

This example demonstrates how to get the current time and date in an Android app 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 handle swipe gestures in Kotlin?

Azhar

Azhar

Updated on 20-Apr-2020 13:13:11

5K+ Views

This example demonstrates how to handle swipe gestures in 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.     ... Read More

How to track the current location (Latitude and Longitude) in an android device using Kotlin?

Azhar

Azhar

Updated on 20-Apr-2020 13:07:00

3K+ Views

This example demonstrates how to track the current location (Latitude and Longitude) in 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. ... Read More

How to create a notification alert using Kotlin?

Azhar

Azhar

Updated on 20-Apr-2020 12:57:49

2K+ Views

This example demonstrates how to create a notification alert 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 − Add ... Read More

How to create a multilevel listView using Kotlin?

Azhar

Azhar

Updated on 20-Apr-2020 12:56:15

352 Views

This example demonstrates how to create a multilevel listView using Kotlin Android.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 − Add ... Read More

How to listen for Webview loading a URL using Kotlin?

Azhar

Azhar

Updated on 20-Apr-2020 12:39:51

1K+ Views

This example demonstrates how to listen for a webview finishing loading a URL in android.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 all checked items in listView using Kotlin?

Azhar

Azhar

Updated on 20-Apr-2020 12:28:14

758 Views

This example demonstrates how to get all checked items in listView 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 volume buttons in Android background service using kotlin?

Azhar

Azhar

Updated on 20-Apr-2020 12:17:17

491 Views

This example demonstrates how to listen for volume buttons in Android background service 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 play sound using SoundPool in Kotlin?

Azhar

Azhar

Updated on 20-Apr-2020 12:11:54

2K+ Views

This example demonstrates how to play sound using SoundPool 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. Step 3 ... Read More

Advertisements