机器人:SQLite数据库的设备上的位置 [英] android: location of sqlite database on the device

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

问题描述

我已经与扩展SQLiteOpenHelper和压倒一切的onCreate的默认方式创建一个SQLite数据库编程。通过这种方式得到分贝在需要的时候动态创建。

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

我想用一个SQLite浏览器检查我的OS X计算机的数据库文件的内容。 我知道数据库文件的名称,但无法找到它的设备上。我已经连接通过USB设备,然后望着取景器和终端,只要找不到数据库文件。

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 db file, but can't find it on the device. I've connected to the device via USB, then looked with finder and terminal, just can't find the db file.

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

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

POM

推荐答案

您可以找到您所创建的数据库,名为<您的数据库,名称>

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使用文件资源管理器浏览到emulator目录。

Use File explorer of DDMS to navigate to emulator directory.

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

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