Azhar has Published 721 Articles

How to parse JSON on Android using Kotlin?

Azhar

Azhar

Updated on 19-Aug-2022 09:04:56

4K+ Views

This example demonstrates how to parse JSON on 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 use SharedPreferences on Android to store, read and edit values using Kotlin?

Azhar

Azhar

Updated on 01-Dec-2020 05:19:24

176 Views

This example demonstrates how to use SharedPreferences on Android to store, read and edit values 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 pass data between Activities on an Android application using Kotlin?

Azhar

Azhar

Updated on 01-Dec-2020 05:14:26

309 Views

This example demonstrates how to pass data between Activities on an Android application 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 call OnDestroy Activity in an Android App using Kotlin?

Azhar

Azhar

Updated on 01-Dec-2020 05:03:52

1K+ Views

This example demonstrates how to call OnDestroy Activity 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 date and time from the internet in Android using Kotlin?

Azhar

Azhar

Updated on 01-Dec-2020 05:01:02

464 Views

This example demonstrates how to get the current date and time from the internet 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 write files to the assets folder in android using Kotlin?

Azhar

Azhar

Updated on 01-Dec-2020 04:58:07

875 Views

This example demonstrates how to write files to the assets folder 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

Where and how to use static variables in Android using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 13:19:29

382 Views

This example demonstrates how to use static variables 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 send a variable from Activity to Fragment in Android using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 13:15:36

2K+ Views

This example demonstrates how to send a variable from Activity to Fragment 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 Change color of Button in Android when Clicked using Kotlin?

Azhar

Azhar

Updated on 30-Nov-2020 13:11:15

2K+ Views

This example demonstrates how to Change color of Button in Android when Clicked 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 specify different layouts for portrait and landscape orientations in Android?

Azhar

Azhar

Updated on 30-Nov-2020 13:06:37

2K+ Views

This example demonstrates how do I specify different layouts for portrait and landscape orientations in 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

1 2 3 4 5 ... 73 Next
Advertisements