In some special cases it is necessary to transfer simple or even complex data to the host application. For this purpose it is fairly enough to only work with static methods. The ARES Touch SDK provides a handful helper classes to avoid working directly with the JNI interfaces and Java environment. The utility class is called FxJavaUtils and provides a large set of classes. These are the steps to address a simple data transfer between the host app and the C++ app part and vice versa.
...
1.1 Create a Java class and add a public static method
public static RETURNTYPE CPP_TO_JAVA( PARAMS );
The RETURNTYPE as well as the PARAMS must be declared with Java known data types. The method name CPP_TO_JAVA does not need to contain characters like _ , may be just CPPTOJAVA.
...