安卓:在哪里数据库文件存储在哪里? [英] Android: Where are database files stored?
问题描述
我在Android设备上创建一个SQLite数据库。该程序可以读取/写入到数据库中,以便数据库文件显然被创建。该SQLiteDatabase.mPath设置为
I created a SQLite database on Android device. The program can read/write to database so the database file has obviously been created. The SQLiteDatabase.mPath is set to
db.mPath = "/data/data/dev.client.android/databases/clientDB.db"
但是当我浏览目录的设备上我无法找到该文件clientDB.db。我看着数据目录内,但它似乎是空的。
but when I browse the directories on the device I can't locate the file clientDB.db. I looked inside data directory but it appears to be empty.
有谁知道什么可能是错在这里?
Does anyone know what could be wrong here?
推荐答案
如果你的意思是你访问 /数据
,发现什么也没有,而你正在检查一个普通的棋子Android的硬件,即预计。 DDMS没有权限浏览 /数据
。
If you mean you visited /data
and found nothing in it, and you are examining an ordinary piece of Android hardware, that is expected. DDMS does not have permission to browse through /data
.
不过,至少如果你的应用程序被编译在调试模式下,你可以使用亚行拉
命令在控制台直接下载你的文件。
However, at least if your app is compiled in debug mode, you can use the adb pull
command at the console to download your file directly.
这篇关于安卓:在哪里数据库文件存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!