Android

【Kotlin】How to use SharedPreferences

 


 

Introduction

In this video, I’m going to share how to use SharedPreferences in Kotlin.

This is my first time to share Kotlin video, and I’m still figuring out how it works.
I’m going to share what I learn about Kotlin little by little 🙂

Hope you enjoy!
 
 

Environment

Android Studio : 3.2.1
Android Emulator : Nexus5 (API 27)
 
 

Video

【Kotlin】How to use SharedPreferences

 
 

Sample Code

activity_main.xml

 

MainActivity.kt

 
 

ABOUT ME
Sara
Working as a freelance programmer in Japan. I try to make coding as simple as possible. Hope you enjoy coding 🙂