Dick Lucas
Dick Lucas

Reputation: 12639

Preserve user preferences upon app update

I am using the Preference class for storing user settings in my app.

How can I ensure these settings are preserved upon issuing app updates?

Upvotes: 1

Views: 132

Answers (2)

M.Bennett
M.Bennett

Reputation: 1029

On Update, the only thing that gets replaced is the apk. Be sure hat your package Name dos not change, this will probably be seen as a new App by android

Upvotes: 1

user1270175
user1270175

Reputation: 233

The shared preferences should not get deleted on app updates, they are only deleted if you uninstall and reinstall the app.

Upvotes: 1

Related Questions