Azhar has Published 721 Articles

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

4K+ 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

2K+ 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

1K+ 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

255 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

588 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

318 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

How to add a shadow and a border on circular imageView android?

Azhar

Azhar

Updated on 26-Nov-2019 09:59:21

657 Views

This example demonstrates how to add a shadow and a border on circular imageView androidStep 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