value exist in sharedPreferences but cant get Kotlin Andriod
I have a code with sharedPreferences file that contain LoggedInUsername.
i am getting this data from firestore and put it into sharedPrefernce file.
saad zahid
but when i want to get that username nothing is shown.
here is the code while putting the string into sharedPreference file:
val sharedPreferences = activity.getSharedPreferences(
Constants.ESHOPE_PREFERENCES,
Context.MODE_PRIVATE
)
val editor :...