Iam Dev
Iam Dev

Reputation: 101

android - SharedPreferences persistin after clear data

One of my clients told me something today and yeah, I'm 99% sure this is a mistake but made me think about it.

He told me He did clear the data and unistall the application from his phone, but after install again the data of the last login restore.

I know about android:allowBackup="false" but only in case of unistall without clear data, right?

Is it possible SharedPreferences resist a clear data?

Upvotes: 3

Views: 296

Answers (1)

Tobias
Tobias

Reputation: 7415

Is android:allowBackup set to false or to true?

If you clear the data and then directly uninstall the app, those changes might not be synced to the google cloud, and thus you will receive an old state when reinstalling the app.

Upvotes: 1

Related Questions