What do I need to see the database file in Android?
ALL, I wrote a simple android app that uses database. Whe开发者_开发问答n I execute it everything is OK. However when I switch the phone to mount mode I can't find the actual *.db file. I am trying to execute following:
cd /media/ find . -name *.db
I also tried to search for the database file without success.
After playing a little with SQLite database browser I know that I need to save the file after creation.
Is there such a function in Android API?
Thank you.
If your app uses a database, it will be placed in the /data/data/<your-apps-package-name>/databases
directory on your phone. To see it on the phone, I believe you need root privileges.
You should be able to pull the database locally to a connected machine which has adb
installed on it. Or you can use ddms
with Eclipse to pull the data to your machine.
精彩评论