Azhar has Published 721 Articles

How to check internet connection availability and the network type on Android using Kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 11:49:26

1K+ Views

This example demonstrates how to check internet connection availability and the network type 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 do I load an ImageView by URL on Android using kotlin?

Azhar

Azhar

Updated on 28-Nov-2020 11:43:48

4K+ Views

This example demonstrates how to load an ImageView by URL 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 do I pass an object from one activity to another on Android using Kotlin?

Azhar

Azhar

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

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

571 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

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

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

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

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

228 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

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

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