[android-developers] Re: With Updated APK, Can't Purge Previous Data

2013-12-03 Thread Streets Of Boston
If your updated APK has its own SQLite database and your app uses a sub-class of SQLiteOpenHelper, you could increase your database version each time your update your app (increase version value in SQLiteOpenHelper constructor) and implement that sub-class' onUpgrade method to clear out data

Re: [android-developers] Re: With Updated APK, Can't Purge Previous Data

2013-12-03 Thread Mukesh Srivastav
Basically on upgrade move the data to the same DB and let say,if you add new filed in your sqlite, just update the version of the DB that helps in retaining the old data. On Wed, Dec 4, 2013 at 3:45 AM, Streets Of Boston flyingdutc...@gmail.comwrote: If your updated APK has its own SQLite