My app stores simple settings in SharedPreferences
it works fine.
However for one person who's downloaded my app is having problems.
The settings in the SharedPreferences
are getting lost between closing and reloading the app.
Could he have a permissions problem somewhere on his phone that's preventing the data from being saved between sessions?
Has anyone experienced this or know of any reason why this could be happening? I'm having a pretty hard time debugging it, I don't know where to start.
// I'm using SharedPreferences Like so:
prefs = getSharedPreferences(this.getString(R.string.prefs_name), 0);
SharedPreferences.Editor editor = prefs.edit();
editor.putString("accounts", accounts);
editor.commit();
//retrieving stored information like:
SharedPreferences prefs = getSharedPreferences(this.getString(R.string.prefs_name), 0);
String accounts = prefs.getString("accounts","[]");