开发者

How to manage database changes while upgrading application versions in android?

With every upgrade there is some change in database schema? 开发者_StackOverflow社区The change could alteration of column types or addition/deletion of columns.

This forces a reinstall of app ie., uninstall older version and then download app again from the android market.

Is there a best practice to follow so that old data is copied during app installation and reinitialized with newer schemas?


within your implementation of SqliteOpenHelper override method onUpgrade().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜