简体   繁体   English

如何在Android Studio(3.0.1)/设备文件资源管理器中打开sqlite文件

[英]How to open a sqlite file in Android Studio (3.0.1) / Device File Explorer

I have accessed my sqlite file under data/data//databases/. 我已经在data / data // databases /下访问了我的sqlite文件。 Then I tried to open it in Android Studio. 然后,我尝试在Android Studio中打开它。 I selected SQL File as the file type, but Android Studio showed me a sequence of characters. 我选择SQL File作为文件类型,但是Android Studio向我显示了一个字符序列。 Not a browser of sqlite file. 不是sqlite文件的浏览器。

Is there any way to fix this? 有没有什么办法解决这一问题? Can I open that sqlite database file under an application like 'DB Browser for SQLite', without saving that file under a folder and opening it from there? 是否可以在“ SQLite的数据库浏览器”之类的应用程序下打开该sqlite数据库文件,而无需将该文件保存在文件夹中并从那里打开?

No, you can't open sqlite files in Android Studio yet. 不,您还不能在Android Studio中打开sqlite文件。 Every day I do it this way: stetho ( http://facebook.github.io/stetho/ ) - powerful tool which allows browse tables and execute queries 每天我都这样做:stetho( http://facebook.github.io/stetho/ )-功能强大的工具,它允许浏览表并执行查询

or downloading DB file into my local file system (through adb or Device File Explorer) and open with SQLite Browser ( https://sqlitebrowser.org/ ) 或将数据库文件下载到我的本地文件系统中(通过adb或设备文件资源管理器)并使用SQLite浏览器( https://sqlitebrowser.org/ )打开

Please take a look at SQLite Administrator . 请看一下SQLite Administrator It is a free software, you can open a database file, create tables, launch queries, etc. I use it quite often when I need to take a closer look at a SQLite db file. 它是一个免费软件,您可以打开数据库文件,创建表,启动查询等。当我需要仔细查看SQLite数据库文件时,经常使用它。

You can try also this: https://www.quora.com/How-do-I-see-database-tables-in-Android-Studio 您也可以尝试以下操作: https : //www.quora.com/How-do-I-see-database-tables-in-Android-Studio

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

相关问题 如何在Android Studio中从设备文件资源管理器查看sqlite数据库而不将其保存到系统 - How to view sqlite database from device file explorer in android studio without saving it to system 如何更改默认设置以在 Android Studio 的设备文件资源管理器中以文本形式打开数据库文件? - How to change the default set to open database files as text in Device File Explorer in Android Studio? 如何在没有Android Studio的情况下启动Android设备文件资源管理器? - How to start Android Device File Explorer without Android Studio? 如何在Android Studio中的文件资源管理器中打开文本文件? - How to open text file in file explorer in Android Studio? Android Studio的SQLite数据库中的文件资源管理器 - File explorer in sqlite database of android studio 如何在Android Studio 3.1.3中将Device File Explorer停靠在侧面? - How to dock Device File Explorer to the side in Android Studio 3.1.3? Android Studio - 设备文件资源管理器图片目录 - Android Studio - Device File Explorer Picture Directory Android Studio - 设备文件资源管理器停止工作 - Android Studio - Device file explorer stop working Android Studio无法打开.sqlite数据库文件 - android studio cant open .sqlite database file Android Studio-Android设备监视器的文件资源管理器不起作用 - Android Studio - Android Device Monitor's File explorer not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM