简体   繁体   English

我用db Questoid SQLite Browser看不到

[英]I can not see with db Questoid SQLite Browser

i am using eclipse for android programing and now i need to view SQLite database in the emulator. 我正在使用eclipse进行android编程,现在我需要在模拟器中查看SQLite数据库。 I followed these step: 我遵循了以下步骤:

Download .jar file 下载.jar文件

Place the plugin .jar file in your Eclipse plugins folder (eg /usr/lib/eclipse/plugins) 将插件.jar文件放在Eclipse插件文件夹中(例如/ usr / lib / eclipse / plugins)

Restart Eclipse 重新启动Eclipse

Start up an Android Emulator w/ Debugging in Eclipse 在Eclipse中启动带有调试功能的Android仿真器

Switch to the DDMS Perspective in Eclipse 在Eclipse中切换到DDMS透视图

Go to the 'File Explorer' tab to locate your device's database file 转到“文件资源管理器”标签,找到您设备的数据库文件

Navigate to: eg 'data -> data -> com.myproject -> databases -> myproject 导航至:例如'数据->数据-> com.myproject->数据库-> myproject

Now when i try to Open the database file in Questoid i can't select it! 现在,当我尝试在Questoid中打开数据库文件时,我无法选择它! (see screen shot) same advice? (请参阅屏幕截图)同样的建议? 在此处输入图片说明

From your screen shot there, the database does not have a "." 从那里的屏幕截图来看,数据库没有“。”。 (read: period) in the file name & extension area. (读取:句点)在文件名和扩展名区域。

Improper: mydatabaseDB 错误的:mydatabaseDB

Proper: mydatabase.db 正确的:mydatabase.db

Once the database shows the proper extension (and is a proper SQLite database), then Questoid will (I use the plugin all the time in Eclipse (Juno version)) then show the "active" button (not disabled like in your screen shot). 一旦数据库显示了正确的扩展名(并且是正确的SQLite数据库),那么Questoid将(我一直在Eclipse中使用插件(Juno版本))然后显示“活动”按钮(如您的屏幕快照中未禁用) 。 When looking for latest database entries (what was just added into the database), I then click once again on the toolbar icon as you show there, in the upper right of the screen. 当寻找最新的数据库条目(刚刚添加到数据库中的条目)时,我再次单击屏幕右上方的工具栏图标,如图所示。 I then go to the Browse Data tab for that view, then choose the table from the database I want to view the fields from. 然后,我转到该视图的“浏览数据”选项卡,然后从要查看其字段的数据库中选择表。

I hope this helps. 我希望这有帮助。

Happy coding... 祝您编程愉快...

Try following these steps: 请尝试执行以下步骤:

1) Close Eclipe 1)关闭Eclipe

2) Remove the .jar from /usr/lib/eclipse/plugins. 2)从/ usr / lib / eclipse / plugins中删除.jar。

3) Place the .jar in /eclipse/dropins and let Eclipse try to install it for you. 3)将.jar放在/ eclipse / dropins中,然后让Eclipse尝试为您安装它。

4) Start Eclipse. 4)启动Eclipse。

The file has to end with .db extension, so the answer is to name your database as this sqlite browser expects it to be. 该文件必须以.db扩展名结尾,因此答案是按此sqlite浏览器期望的名称命名数据库。 Another way of fixing it is to find a year old version that does not have this constraint. 解决该问题的另一种方法是找到没有此限制的旧版本。

you can always use sqlitebrowser externally . 您始终可以外部使用sqlitebrowser You will have to pull your databse everytime from ddms though . 但是,您每次都必须从ddms提取数据。

I had the same problem with "sqlitemanager": only .db-Database files are accepted. 我对“ sqlitemanager”有相同的问题:仅接受.db-Database文件。

This is the solution: 这是解决方案:

  1. Download this Questoid SqLiteBrowser: http://www.java2s.com/Code/JarDownload/com.questoid/com.questoid.sqlitebrowser_1.2.0.jar.zip 下载此Questoid SqLiteBrowser: http : //www.java2s.com/Code/JarDownload/com.questoid/com.questoid.sqlitebrowser_1.2.0.jar.zip

  2. Unzip and put it into eclipse/dropins (not Plugins) 解压缩并将其放入Eclipse / Dropins(而非插件)

Please use the extension ".db" in lowercase, please don't try with these extensions .SLQLITE, .BD, .DB, .SQL, or similar or without extensions. 请使用小写的扩展名“ .db”,请勿尝试使用这些扩展名.SLQLITE,.BD,.DB,.SQL或类似的扩展名,也不要使用没有扩展名的扩展名。

Regards, 问候,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM