I\'m developing an application in which I\'m storing username and password in SharedPreferences. All things are working fine for me, s
Change to:
SharedPreferences emailLoginSP;
SharedPreferences.Editor SPEdit;
emailLoginSP = getSharedPreferences("pref_file_name",MODE_PRIVATE);
SPEdit = emailLoginSP.edit();
SPEdit.putString("prefEmailId", email_text);
SPEdit.putString("prefUserId", userIDToken);
SPEdit.putString("prefAccess_token", accessToken);
SPEdit.commit();
NOTE: This is untested and from memory, so there may be an error.
You want to minimise the .commit() calls, which is why there is only one at the end.
pref_file_name can be whatever you want, with lower case letters, no numbers at start, etc.