The application is written in a mix of Prolog and Java. This document does not contain the source code of the application. A version of the source code can be found on the following web site:
For the mobile example there are the following sources:
During compilation we cannot use the Android package of the Jekejeke Prolog runtime library (interpreter.apk) since it contains Dalvik. Instead we have to use the embeddable library of the Jekejeke Prolog runtime library (interpreter.zip) with Java byte code.
We have therefore used the following directory layout for the sources (Data.java, Query.java, Criterias.java, Adapter.java, R.java and Results.java), the resources (table.p, AndroidManifest.xml, deployandroid.png and strings.xml,) and the Jekejeke Prolog runtime library (interpreter.zip) during compilation:
The R.java file should be automatically generated by your tool chain. Your tool chain will also first generate Java byte code, then Dalvik code and finally an APK file. The intermediate and final results might use the following directory layout:
The final APK file can then be deployed on the emulator or the device at hand.Add