...
It may be necessary to run certain actions whenever an entity is selected. The CFxARESInstanceDelegate provides a method that informs the host application a selection has changed. The method mainSelectionSetChanged() calls a native method GetProperties() to retrieve more information about the entities selected. The DWG Expert uses a simple AlertDialog to display the necessary entity properties. The C++ implementation of GetProperties() is stored in Properties.cpp and compiled with the module JNI. Once libJNI.so is loaded , all methods are linked and available to be called.
Properties.java
...