How and where to add sqlite(.db) file in to an android project

后端 未结 1 996
臣服心动
臣服心动 2020-12-14 15:48

I am new to Android. Now, I am trying to work with database. I got many tutorials for manipulating Sqlite database operations. But my doubt is that where should I add the .d

相关标签:
1条回答
  • 2020-12-14 16:39

    If you already have .db file then put that file in assets folder or raw folder

    Then you have to copy that file at path /your.package.name/data/data directory for further use.

    Otherwise you can create new database using code... Hope this will help you ...!

    see this example....

    0 讨论(0)
提交回复
热议问题