sqlite 数据库在设备上的位置 [英] Location of sqlite database on the device

查看:40
本文介绍了sqlite 数据库在设备上的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用扩展 SQLiteOpenHelper 和覆盖 onCreate() 的默认方式以编程方式创建了一个 sqlite 数据库.这样,数据库就可以在需要时即时创建.

I've created a sqlite database programmatically with the default way of extending SQLiteOpenHelper and overriding onCreate(). This way the db gets created on the fly when needed.

我想在我的 OS X 机器上使用 sqlite 浏览器检查 db 文件的内容.我知道 db 文件的名称,但在设备上找不到它.我已经通过 USB 连接到设备并使用查找器和终端查找,但我就是找不到 db 文件.

I'd like to check the contents of the db file on my OS X machine with a sqlite browser. I know the name of the db file, but I can't find it on the device. I've connected to the device via USB and looked with finder and terminal, but I just can't find the db file.

Android 设备上 sqlite 数据库的默认位置是什么?

What is the default location for a sqlite databases on an android device?

推荐答案

你可以找到你创建的数据库,名为

You can find your created database, named <your-database-name>

//data/data/<Your-Application-Package-Name>/databases/<your-database-name>

使用文件资源管理器将其拉出并将其重命名为具有 .db3 扩展名以在 SQLiteExplorer 中使用它

Pull it out using File explorer and rename it to have .db3 extension to use it in SQLiteExplorer

使用 DDMS 的文件资源管理器导航到模拟器目录.

Use File explorer of DDMS to navigate to emulator directory.

这篇关于sqlite 数据库在设备上的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆