开发者

How do I manually insert a database into a Android project?

开发者 https://www.devze.com 2023-01-05 06:47 出处:网络
The database file is identified by Dalvik when I insert it via the Dalvik Debug Monitor Server (DDMS), but when I add the database to the project assest it doesn\'t even upload to the dev开发者_如何学

The database file is identified by Dalvik when I insert it via the Dalvik Debug Monitor Server (DDMS), but when I add the database to the project assest it doesn't even upload to the dev开发者_如何学Goice (as I can see through the DDMS). How to fix it?


Adding a sqlite db to the assets folder will not make it available for you to use it. Your db should be copied to /data/data/YOUR_PACKAGE/databases/ on the first run.

Check this link.

0

精彩评论

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