Mobile Deployment

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 code and not Java byte code. Instead we have to use the embeddable library of the Jekejeke Prolog runtime library (interpreter.zip) with the Java byte code, which can be downloaded from our web site (www.jekejeke.ch).

We have used the following directory layout for the Java sources (Adapter.java, Results.java, Query.java and Criterias.java), the Prolog text (table.p), the Android resources (deployandroid.png, strings.xml and AndroidManifest.xml) and the Jekejeke Prolog runtime library (interpreter.zip) with the extension renamed during compilation:

src
+--- example07
+--- Adapter.java
+--- Criterias.java
+--- Query.java
+--- Results.java
+--- table.p
lib
+--- interpreter.jar
res
+--- drawable
| +--- deployandroid.png
+--- values
+--- strings.xml
AndroidManifest.xml

We have used the interactive tool chain from the Android Studio IDE. The tool chain will also generate a directory gen with some derived information. The tool chain typically will first gener-ate Java byte code, then Dalvik code and finally an APK file for the mobile application. The intermediate and final results might use the following directory layout:

classes
+--- example07
+--- Adapter.class
+--- Criterias.class
+--- Query.class
+--- Results.java
+--- table.p
+--- deployandroid.apk
+--- deployandroid.unaligned.apk

Kommentare