Android的 - 我如何查看我的应用程序创建一个SQL数据库?我在Eclipse中的Android模拟器运行它 [英] Android - How can I view a sql database created in my app? I'm running it on the Android emulator in Eclipse
问题描述
我有一个使用Android的数据库创建表和存储数据的Android应用程序。我目前正在运行此应用程序在Eclipse中的模拟器。我有2个问题:
I have an Android application that uses the Android database to create tables and store data. I'm currently running this app in the emulator in Eclipse. I have 2 questions:
- 在哪里可以找到实际的数据库文件(必须是在我的电脑上的某个地方吧?)当我运行仿真器中我的应用程序的创建?
- 有没有一种简单的方法来查看什么是我的数据库/表?
如果我能找到的地方实际的数据库文件(如果有这样的事),我的电脑上,那么也许问题2将是很容易回答,打开该文件。但我真的不知道。任何帮助是AP preciated。
If I could find where the actual database file is (if there is such a thing) on my computer, then perhaps question 2 would be answered as easily as opening that file. But I really have no clue. Any help is appreciated.
推荐答案
你好
1。在Eclipse看文件浏览器选项卡(靠近控制台选项卡)。或者看看菜单窗口 - >显示视图 - >其他... - >文件浏览器。仿真器应运行。在文件管理器窗口进入文件夹数据/数据/ [your_package_name] /数据库/。在那里,你可以找到你的数据库。你可以将其导出到您的计算机。在窗口的右上角有一个按钮拉文件,从设备。选择数据库,单击该按钮并保存数据库的计算机上。
1. In the Eclipse look at the File Explorer tab (near the Console tab). Or look at menu "Window -> Show View -> Other... -> File Explorer". Emulator should be run. In the File Explorer window go to the folder "data/data/[your_package_name]/databases/". There you can find your database. You can export it to the your computer. At the right top corner of the window there is a button "pull a file from device". Select database, click that button and save a database on the computer.
2。节目源码浏览器即可显示在数据库中的数据。您可以下载这里。它很容易使用。
2. Program "sqlite browser" can shows a data in the database. You can download it here. It is easy to use.
这篇关于Android的 - 我如何查看我的应用程序创建一个SQL数据库?我在Eclipse中的Android模拟器运行它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!