Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 264
Iam Dev Avatar asked Jun 11 '26 04:06

Iam Dev


1 Answers

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.

like image 85
Tobias Avatar answered Jun 13 '26 19:06

Tobias



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!