Skip to content

Instantly share code, notes, and snippets.

View Peacemaker-Otoo's full-sized avatar
😎
Out sick

Otoo Peacemaker Peacemaker-Otoo

😎
Out sick
View GitHub Profile
@RahulSDeshpande
RahulSDeshpande / SharedPrefs.kt
Last active February 17, 2022 06:55
'SharedPrefs' utility class written Kotlin, for storing and retrieving data from SharedPreference in Android.
import android.content.Context
import android.preference.PreferenceManager
import android.util.Log
import java.lang.ref.WeakReference
/**
* Created by rahuldeshpande on 02/06/19.
*/
object SharedPrefs {