Skip to content
MathJud edited this page Sep 22, 2012 · 4 revisions

Android Specific Instructions

  • [ Build Instructions ] (/WachterJud/qaul.net/blob/master/android/README.md)

Create Installer

  • Build android client
  • The installer is the file bin/qaul.apk

Special Tasks

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

Clone this wiki locally