Skip to content Skip to sidebar Skip to footer

Automatically Uninstalling The Older App Before Installing The New One

I published my app on play store and I have made an update that may cause the older one to crash due to some database structure changes that I have made and I have had a hell of hu

Solution 1:

No, there is no way to force uninstallation before installation. But it sounds like you could just delete your DB on upgrade using SQLiteOpenHelper

Solution 2:

If you use GreenDAO you can use the schema version Schema schema = new Schema(, "greendao");

when increasing the schema version GreenDAO will empty your DB and update the schema, and then you can repopulate it from the server (if applicable)

Post a Comment for "Automatically Uninstalling The Older App Before Installing The New One"