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

前端 未结 3 1057
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 00:37

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 a

3条回答
  •  一向
    一向 (楼主)
    2020-12-18 01:34

    We are experienced same problems with our Android apps. Our userbase is pretty big (several million users) and by our statistics subjected problems occured for about 0,2% - 0,3% of users. It seems to be not so much, but with our userbase it thousands of users.

    After long search for fixes of this problem, we've made a decision to stop using SharedPreferences for our projects. We are using simple SQLiteDatabase instead, and it works very well.

提交回复
热议问题