skip to Main Content

Android Studio – How to link a ProfileModel to a SharedPreference

I have stored data with SharedPreference, I would like to retrieve them now by going through functions The stored data: dataUser = getApplicationContext().getSharedPreferences("userData", Context.MODE_PRIVATE); SharedPreferences.Editor editor = dataUser.edit(); editor.putString("date", dateString); editor.commit(); My ProfileModel: public class ProfileModel { private String date;…

VIEW QUESTION
Back To Top
Search