xileb0
xileb0

Reputation: 461

SharedPreferences get deleted randomly

A user of my android app has the following problem:

Every few days the SharedPreferences of my app get deleted and the app goes back to the default values of the settings. In the app are settings like the IP-address of a server and things like that...

The strange thing is, this never happened on any other device. He uses Android 4.4 (I have a test device with 4.4 too - No problems at all)

I guess this problem is pretty hard to solve, since there are so many possibilities. But maybe one of you faced a similar issue.

Upvotes: 0

Views: 920

Answers (1)

Asim
Asim

Reputation: 7114

If he uses some utility app that cleans app cache (or user data) to create some free space, it might be deleting the shared preferences. If an app's data is cleared, all shared preferences get deleted.

Upvotes: 6

Related Questions