Copy Sqlite database for android application

前端 未结 3 1345
旧时难觅i
旧时难觅i 2021-01-15 23:23

I am trying to use my own created database in my android application using this tutorial http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applicatio

3条回答
  •  春和景丽
    2021-01-16 00:10

    The problem with your code is that when you use the getReadableDatabase() function it creates an empty database in the specified location. Take a look at this thread, it provided a solution for me when I had the same issue:

    http://www.anddev.org/networking-database-problems-f29/missing-table-in-sqlite-with-specific-version-of-desire-hd-t50364.html

提交回复
热议问题