如何查看境界浏览器我的境界文件? [英] How to view my Realm file in the Realm Browser?

查看:179
本文介绍了如何查看境界浏览器我的境界文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚发现的境界,想探索它更详细的,所以我决定创建示例应用程序,并围绕具有惹它。到目前为止好但有一件事我还没有能够制定出只是尚未是如何在域浏览器中查看我的数据库。会有人能够给我一个洞察到这可怎么办呢?任何意见将是多少AP preciated!

Ive just discovered realm and wanted to explore it in more detail so i decided to create sample application and having a mess around with it. So far so good however one thing i havent been able to work out just yet is how to view my database in Realm Browser. Would anyone be able to give me an insight into how this can be done? Any advice would be much appreciated!

在此先感谢。

推荐答案

目前该领域的浏览器不支持直接访问设备上的数据库,所以你需要从仿真器/手机复制数据库,以查看它。可以通过使用亚行来完成:

Currently the Realm Browser doesn't support accessing databases directly on the device, so you need to copy the database from the emulator/phone to view it. That can be done by using ADB:

ADB拉/数据/数据​​/<包名称> /文件/

这个命令将拉动使用创建的所有域文件 Realm.getInstance(的getContext()) Realm.getInstance(的getContext(),XXX )。默认的数据库名为 default.realm

That command will pull all Realm files created using Realm.getInstance(getContext()) or Realm.getInstance(getContext(), "xxx") . The default database is called default.realm.

请注意,这将只能在一个仿真器或设备的根源。

Note that this will only work on a emulator or if the device is rooted.

这篇关于如何查看境界浏览器我的境界文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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