How to check if data is inserted in Room Database

后端 未结 7 2657
执念已碎
执念已碎 2021-02-19 22:07

I am using Room Database from the new Architecture components in my project. I am adding some data through dao, but when trying to retrieve it I am not getting it. Can you pleas

7条回答
  •  太阳男子
    2021-02-19 22:25

    One of the easiest way is:

    1. First download DB Navigator as plugin in Android Studio(For more visit: https://plugins.jetbrains.com/plugin/1800-database-navigator).

    2. Go to view> Tools Window> Device File explorer and download the instance of your DB.

    3. Open DB Browser(From left Pane window) and browse your DB instance you have downloaded. Setup the connection and you are good to browser you database.

    4. For more info please refer to the link provided above.

提交回复
热议问题