Reputation: 17429
I developed an Android application. I installed the apk on my tablet.
Now, I want just modify few code lines and one table of my SQLite database, but I don't want reinstall my apk, I want make an upgrade.
How can I build this upgrade mechanism?
Upvotes: 0
Views: 210
Reputation: 1650
Yes, you can preserve the data in your database. There is a method onUpgrade in SQLiteOpenHelper which you can override to modify your table(s).
Upvotes: 3
Reputation: 95578
Android doesn't provide a "patch" mechanism. You need to create a new APK and install it over the existing application.
Upvotes: 3