android - Update application SQLite database created by Assets DB -
i have database in application created coping sqlite database file assets folder in next release want update database without losing previous data.
is there logic or way copy previous data , create new database through sqliteopenhelper in near future not face problem.
thanks
- use gist
- in
onupgrade
method, copy previous data old database. - in
doupgrade
method, use copied data update new database.
Comments
Post a Comment