查看使用Room Persistence Library创建的数据库的内容 [英] View contents of database created with Room Persistence Library
问题描述
有没有更简单的方法来查看使用Android Studio中的Room Persistence Library创建的数据库的内容?
Is there any easier way to see the contents of database created with Room Persistence Library in Android Studio?
推荐答案
方法1
您可以使用 Android-Debug-Database ,然后可以对数据进行CRUD从浏览器中,然后您可以从浏览器中查看您的首选项数据.
Method 1
You can use Android-Debug-Database, and you can CRUD of your data from a browser, and then you can see your Preference data from a browser.
如果您不想从浏览器中使用,而必须检查其他文件,需要检查数据更改,请使用Genymotion模拟器.因此,您必须将您的模拟器设为root用户. https://stackoverflow.com/a/44039429/2772552 . 让我知道你是否还可以.
If you don't want to use from Browser and you have to check other files,need to check your data changes, use a Genymotion Emulator.So you have to root your emulator.Try to Root your emulator, plz see in https://stackoverflow.com/a/44039429/2772552. Let me know if you are not OK.
这篇关于查看使用Room Persistence Library创建的数据库的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!