开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜