-
Notifications
You must be signed in to change notification settings - Fork 5
AndroidHome
MathJud edited this page Sep 22, 2012
·
4 revisions
- [ Build Instructions ] (/WachterJud/qaul.net/blob/master/android/README.md)
- Build android client
- The installer is the file bin/qaul.apk
JNI (Java native interface) is used to communicate between the android java code and the "native" C code of the libqaul. If you add a function to libqaul that you want to access from java you need to define it in the java class NativeQaul.java The corresponding jni/net_qaul_qaul_NativeQaul.h file needs to be created from the command line:
# navigate to jni directory and invoke the command
cd android/jni
javah -classpath ../bin/classes net.qaul.qaul.NativeQaul
cd ../..
After that you can implement the wrapper in the file jni/net_qaul_qaul_NativeQaul.c