Mobile Deployment

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:

http://www.jekejeke.ch/idatab/doclet/prod/en/docs/05_run/15_stdy/08_deploy/11_appendix/mobile/package.html

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:

    gen
 +--- jekpro
           +--- study
               +--- deployandroid
                  +--- R.java
    src
 +--- jekpro
           +--- study
               +--- deployandroid
                   +--- Adapter.java
                  +--- Criterias.java
                  +--- Data.java
                   +--- Query.java
                  +--- Results.java
     +--- table.p
lib
     +--- interpreter.jar
    res
     +--- drawable
        +--- deployandroid.png
     +--- values
          +--- strings.xml

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:

    classes
 +--- jekpro
          +--- study
               +--- deployandroid
                 +--- Adapter.class
                   +--- Criterias.class
                   +--- Data.class
                   +--- Query.class
                   +--- R$attr.java
                   +--- R$drawable.java
                   +--- R$string.java
                   +--- R.java
                   +--- Results.java
     +--- classes.dex
     +--- table.p
     +--- deployandroid.apk
     +--- deployandroid.apk.res
     +--- deployandroid.apk.unaligned

The final APK file can then be deployed on the emulator or the device at hand.

Comments