...
The most important step is to embed the viewer object and connect it with the host application. The viewer object com.graebert.aresinstance.CFxARESDocumentView can be used and configured in a layout file. The next step is to bind the layout object with a property of type CFxARESDocumentView using findViewById(). This object is a member of the host application. The host application’s main class is the MainActivity.java that has a synergy with a class named ARESDelegate.java . The ARESDelegate.java is derived from CFxARESInstanceDelegate, is the core piece between the host application and the kernel SDK and must initialized with the singleton CFxARESInstance.instance() from the main class. The kernel SDK kernel starts to render the drawing into the CFxARESDocumentView object that will be accessed by getDocumentView() when from the ARESDelegate.java when a document is loaded and activated successfully.
Note: The host application’s main class may be directly used as CFxARESInstanceDelegate but it is easier to split both parts of the application.
...