I’m using the shared preferences to store login credentials for my app. Everything works fine except with one user. After a certain amount of time the shared preferences seem to be reset or cleared somehow. I’ve adjusted my app for this user to never clear his shared preferences anymore. This way I can be sure that it is not my app’s fault. But even after this modification his credentials get cleared, so I’m suspecting something else is going on with his device.
Do any of you have suggestions on how to approach this problem? I’ve been thinking about creating another app which sets a fileobserver to monitor the preference file. This way I hope to see when the file gets cleared/deleted. Maybe there are apps who can do this already? I’m even willing to make the preference file available to other apps for checking. Is there any one way to diagnose this problem? I’m sure it’s not my app doing the clearing / resetting…
Thanks for any help you can give.
You have only one user with this problem? How many users do you have? At least 100? If so it’s probably a bad device. Don’t waste time chasing this.