简体   繁体   English

如何在 Android Studio 中检查 SQLite 数据库?

[英]How to check SQLite database in Android Studio?

I created SQLite database in Android Studio (login form) and want to find it to check how many users I created, and for some other experiments, but I don't know where to find it.我在 Android Studio(登录表单)中创建了 SQLite 数据库并想找到它来检查我创建了多少用户,以及其他一些实验,但我不知道在哪里可以找到它。 Does anyone show me right direction?有人告诉我正确的方向吗?

I use Stetho by Facebook and it's brilliant for this.我使用 Facebook 的 Stetho,这非常棒。 Here is the link: http://facebook.github.io/stetho/这是链接: http : //facebook.github.io/stetho/

All the documentation to set it up is there, and it's all pretty simple.设置它的所有文档都在那里,而且都非常简单。

You can check the SQLite Database and every modification you did with DB Browser.您可以检查 SQLite 数据库以及您使用 DB Browser 所做的每项修改。

DB Browser数据库浏览器

Here's the link to download it https://sqlitebrowser.org/这是下载它的链接https://sqlitebrowser.org/

Once you install it.一旦你安装它。 go to Android Studio -> app -> assets -> and right click your database , click Show in Explorer then drag and drop from the folder (where databse is) to the DB Browser转到 Android Studio -> 应用程序 -> 资产 -> 并右键单击您的数据库,单击Show in Explorer然后从文件夹(数据库所在的位置)拖放到数据库浏览器

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

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