开发者

i created a database in my app, but i don't find it in the DDMS

开发者 https://www.devze.com 2023-01-21 03:28 出处:网络
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,

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

0

精彩评论

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