Android - SQLite 数据库存储在哪里 [英] Android - Where is SQLite Database stored

查看:36
本文介绍了Android - SQLite 数据库存储在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
Android模拟器在哪里存储SQLite数据库?

我正在使用 SQLite 和 phonegap 创建一个多平台应用程序.但是,我遇到了一个问题.

I am using SQLite and phonegap to create a multi platform app. However, I have run across an issue.

我现在正在寻找 phonegap 存储名为 0000000000000001.dbdatabase.db

I am now looking for the location the phonegap stores the database files named 0000000000000001.db and database.db

我为 iPhone 找到了这个,但似乎无法获得 Android 的位置.我目前正在模拟器和实际设备 (ARCHOS) 上运行.

I have found this for iPhone, however cannot seem to get the location for the Android. I am currently running on a simulator and actual device (ARCHOS).

推荐答案

打开 DDMS 透视图窗口:(窗口->打开透视图->其他->DDMS)它应该在新选项卡中打开.

Open the DDMS perspective Window: (window->open perspective->other->DDMS) It should open in a new tab.

转到 DDMS -> 文件资源管理器 -> 数据 -> 数据 -> 查看您的包名称 -> 数据库 -> 此处是您的数据库文件.(在右上角,从设备中选择拉取文件".)将其导出并通过 Sqlite 数据库连接器打开.

Go to DDMS -> file explorer -> data -> data -> see your package name -> databases -> here your database file. (In the upper right, choose "Pull file" from device.) Export it and open through an Sqlite database connector.

您将看到更新后的数据.在执行这些步骤之前,请确保您已先运行您的应用程序.

You will see your updated data. Before taking these steps make sure that you have run your application first.

这篇关于Android - SQLite 数据库存储在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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