android - User settings saved in SharedPreferences removed or lost between reloads of app -


my app stores simple settings in sharedpreferences works fine. 1 person who's downloaded app having problems. settings in sharedpreferences getting lost between closing , reloading app.

could have permissions problem somewhere on phone that's preventing data being saved between sessions?

has experienced or know of reason why happening? i'm having pretty hard time debugging it, don't know start.

// i'm using sharedpreferences 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","[]"); 

we experienced same problems our android apps. our userbase pretty big (several million users) , our statistics subjected problems occured 0,2% - 0,3% of users. seems not much, our userbase thousands of users.

after long search fixes of problem, we've made decision stop using sharedpreferences our projects. using simple sqlitedatabase instead, , works well.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -