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

  1. use gist
  2. in onupgrade method, copy previous data old database.
  3. in doupgrade method, use copied data update new database.

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -