GVillani82
GVillani82

Reputation: 17429

Update android application

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

Answers (2)

Hassan Jawed
Hassan Jawed

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

David Wasser
David Wasser

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

Related Questions