这边介绍安卓应用数据库查看工具 Debug-Database 的使用。
介绍:
集成到app中后,手机连接数据线在电脑,然后随便找个浏览器输入http://localhost:8080来查看app的数据库内容
界面如下:
点击 Run Queey 可以运行上方输入框的SQL语句
也可以在下面小框进行模糊查询
集成:
build.gradle中添加:
dependencies{
debugImplementation 'com.amitshekhar.android:debug-db:1.0.4'
}
如需变更端口号:
buildTypes{
debug {
resValue("string", "PORT_NUMBER", "8081")
}
}