Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » UltraLite - Java Programming » UltraLiteJ application development » How to build and deploy UltraLiteJ applications


Deploying an UltraLiteJ application for Android

Specify appropriate creation parameters, connection parameters, synchronization parameters, protocol options, method calls, and deployment files to ensure that your UltraLiteJ application runs successfully on Android smartphones.


There are no prerequisites for this task.

  1. Add the following files to your Android project:

    • %SQLANY16%\UltraLite\UltraLiteJ\Android\UltraLiteJNI16.jar

    • %SQLANY16%\UltraLite\UltraLiteJ\Android\ARM\

  2. Specify the following parameters:

    • When using obfuscation, set the creation parameter obfuscate=1 while creating the database.

    • When using AES encryption, set the connection parameter DBKEY=encryption-key while creating or connecting to the database.

    To set these parameters, use the setCreationString and setConnectionString methods.

  3. Set the appropriate parameter settings when using synchronization in your UltraLite application:

    Synchronization type Parameter settings

    Set the Stream synchronization parameter to "tcpip".


    Set the Stream synchronization parameter to "http".


    Set the Stream synchronization parameter to "tls".


    Set the Stream synchronization parameter to "https".

  4. When using RSA end-to-end encryption (RSA E2EE), set the protocol option e2ee_public_key=key-file.

  5. When using ZLIB compression, set the protocol option compression=zlib.

  6. When using AES encryption, call the ConfigPersistent.EnableAesDBEncryption method.

  7. When using RSA TLS, RSA HTTPS, or RSA E2EE, deploy %SQLANY16%\UltraLite\UltraLiteJ\Android\ARM\


The UltraLiteJ application runs successfully on the Android device that it is deployed to.


Deploy an UltraLite database to the Android mobile device that the application was deployed to, or create a new database with the deployed application.

 See also