Azhar has Published 721 Articles

How do I pass an object from one activity to another on Android using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 11:37:54

1K+ Views

This example demonstrates how to pass an object from one activity to another 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 get fling gesture detection working in an Android App using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 11:29:07

357 Views

This example demonstrates how to get fling gesture detection working 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 get the current GPS location programmatically on Android using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 11:24:20

8K+ Views

This example demonstrates how to get the current GPS location programmatically 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

The simplest way to get the user's current location on Android using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 11:17:32

875 Views

This example demonstrates how to get the user's current location 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.Add the following dependency in Gradleimplementation 'com.google.android.gms:play-services-location:17.0.0'Step 2 − Add the following ... Read More

How do I declare global variables on Android using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 11:06:04

3K+ Views

This example demonstrates how to declare global variables 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 get screen dimensions in pixels on Android App using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 11:02:01

1K+ Views

This example demonstrates how to get screen dimensions in pixels on the 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 ListView's recycling mechanism works on Android using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 10:47:59

157 Views

This example demonstrates how to show the working of ListView's recycling mechanism 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. ... Read More

How to write a custom adapter for my list view on Android using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 08:37:42

5K+ Views

This example demonstrates how to write a custom adapter for my list view 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 show current progress while downloading a file on Android App using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 08:27:57

372 Views

This example demonstrates how to show current progress while downloading a file on 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 crop a circular area from bitmap in Android using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 08:21:49

532 Views

This example demonstrates how to crop a circular area from bitmap 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 ... 5 6 7 8 9 ... 73 Next
Advertisements