SharedPreferences have method getAll, but it returns no entries despite the fact some keys exist:
PreferenceManager.getDefaultSharedPreferences(this).contain
incase anyone wants to iterate through sharedpreferences in KOTLIN
sharedPreferences?.all?.forEach { //access key using it.key & value using it.value Log.d("Preferences values",it.key() + ": " + it.value() }