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.
精彩评论