Android studio 数据库可视化操作

前言:项目中使用了Litepal数据库(附上使用手册),另外基于SQLiet数据库也可以通过Android studio很方便查看和操作数据库。

操作:

1、安装数据库插件SQLScout,成功后Android studio右边栏会出现“SQLite Explrer”

2、连上手机或模拟器,打开“Device File Explorer”,通过右边栏“Device File Explorer”直接打开,或者“View”—>"Tool Windows"—>"Device File Explorer"

3、进入目录data/data/app包名/databases/,双击数据库文件,然后点击"SQLite Explorer"即可对数据查看和操作,如果发生Error downloading contents of device file "xx.db": open failed: Permission,命令行执行“adb root”即可

猜你喜欢

转载自blog.csdn.net/yufumatou/article/details/108011311