i created a database in my app, but i don't find it in the DDMS
I can't find my test.db in the file manage开发者_Go百科r in DDMS. Does someone know when we create a database, where it's installed ?
If you are using a non-developer (or non-rooted) android device, the database will not be visible to you in DDMS. It's only visible to the parent application, as each application on android runs as a separate linux process.
However, if you are using the emulator or a developer/rooted device, the database file should be in /data/data/<package_name>/databases/
(link).
/data/data/package_name/databases
Taken from here
精彩评论