DJ-DOO
DJ-DOO

Reputation: 4781

Complete overwrite of current version of android app with update

I am just wondering is there a way to set it up through the manifest or somewhere else that when the user updates your app that it completely overwrites the current version on the device? I know the default is when the user updates the data etc from the old version is kept.

I am looking to set it up in such a way that there is a completely clean install each time the user updates the app from the play store.

So if anyone has any thoughts or knows how to do this, I'd appreciate hearing them or hearing how.

Gary

Upvotes: 0

Views: 1314

Answers (1)

durbnpoisn
durbnpoisn

Reputation: 4669

Google Play manages the version numbers from your manifest. So your update for the APP will be complete when your version number changes. If you want to blow away your data after an update, I would suggest that you keep the version number as part of your saved data. Then, when it updates, it can see that the version number is different and needs to reset the data.

Upvotes: 1

Related Questions