如何使用genymotion作为模拟器在android studio中查看存储在sqlite中的数据 [英] How to see the data stored in sqlite in android studio using genymotion as emulator

查看:277
本文介绍了如何使用genymotion作为模拟器在android studio中查看存储在sqlite中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我的笔记本电脑中装有AMD处理器,因此我将GENYMOTION用作仿真器.我已经将数据存储在sqlite中,因为它是android studio中的一个插件.但是,如果我想使用DDMS来查看数据,文件浏览器将什么也不显示.如何使用androidstudio和GENYMOTION查看存储在sqlite数据库中的数据.预先感谢

As i am having AMD processor in my laptop i am using GENYMOTION as an emulator. I have stored the data in sqlite as it is a plugin in android studio. But if i want to see the data using DDMS the file explorer showing nothing. How can i see the data stored in sqlite database using androidstudio and using GENYMOTION. Thanks in advance

推荐答案

  1. 转到Tools -> DDMS或单击工具栏中SDK Manager旁边的设备监视器图标.

  1. Go to Tools -> DDMS or click the Device Monitor icon next to SDK Manager in Tool bar.

设备监视器"窗口将打开.在文件资源管理器"选项卡中,单击data -> data -> your project name.之后,您的数据库文件将打开.单击pull a file from device图标.使用.db扩展名保存文件.

Device Monitor window will open. In File Explorer tab, click data -> data -> your project name. After that your databases file will open. Click pull a file from device icon. Save the file using .db extension.

打开FireFox,按Alt,Tools -> SQLiteManager.

Open FireFox, Press Alt , Tools -> SQLiteManager.

关注数据库->连接到数据库->浏览数据库文件,然后单击确定.您的SQLite文件将立即打开.

Follow Database -> connect to Database -> browse your database file and click ok. Your SQLite file will opened now.

这篇关于如何使用genymotion作为模拟器在android studio中查看存储在sqlite中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆