Reputation: 1051
When we run an app during development on a device is sharedPreference cleared when app is reinstalled ?
Upvotes: 5
Views: 2075
Reputation: 711
If you will clear the data of an application then the shared preference will be cleared hence if you reinstall an application for the first time there will be no application data so no shared preference will be there.
Upvotes: 0
Reputation: 534
while reinstalling the app,shared preference never clear. While un installed and installing the app. Shared preference get cleared.
Upvotes: 0
Reputation: 30611
SharedPreference
s and SQLite tables of the old installation
are deleted.SharedPreference
s and SQLite tables of the old installation are
still present.Upvotes: 8