Blog
Blog copied to clipboard
RViewer-ObjectBox data.mdb viewer
RViewer
A library to check the data saved by ObjectBox.
打开、查看 ObjectBox 存储的 data.mdb 文件。
Getting started
In your build.gradle
:
dependencies {
debugCompile 'cn.renyuzhuo.rviewer:rviewer:1.0.2'
releaseCompile 'cn.renyuzhuo.rviewer:rviewer-no-op:1.0.2'
}
In your Application
class:
public class App extends Application {
private BoxStore boxStore;
private static App app;
@Override
public void onCreate() {
super.onCreate();
boxStore = MyObjectBox.builder().androidContext(this).build();
app = this;
ArrayList<Class> classes = new ArrayList<>();
classes.add(Note.class); // Your Entitys
ObjectViewBoxManager.getInstance().init(boxStore, classes);
}
}
Notice: You Should all Add toString() like:
@Override
public String toString() {
return "Note{" +
"id=" + id +
", text='" + text + '\'' +
", date=" + date +
'}';
}
All the things is done.

Thanks
License
MIT