private void setUserInfo( String username, String fullname, String email, String phone, int birthdate) { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this); SharedPreferences.Editor editor = sharedPreferences.edit(); SharedPrefs.setDefaults("username", username, getApplicationContext()); SharedPrefs.setDefaults("fullname", fullname, getApplicationContext()); SharedPrefs.setDefaults("email", email, getApplicationContext()); SharedPrefs.setDefaults("phone", phone, getApplicationContext()); SharedPrefs.setDefaults("birthdate", birthdate, getApplicationContext()); editor.apply(); }