Adding Compiler and Library Resources

Add compiler and library resources to the Android project.

  1. Add a compiler resource to the root directory of the project:
    1. In Windows Explorer, browse to SMP_HOME\MobileSDK23\ObjectAPI\Android (where SMP_HOME is the directory where SMP is installed, for example, C:\SAP\UnwiredPlatform) and copy the armeabi (Ultralite native library) folder and these JAR files: AfariaSLL.jar (for Afaria users), ClientLib.jar (messaging), sup-client.jar (ObjectAPI client), and UltraLiteJNI12.jar (database access).
    2. In Workspace Navigator, expand SMP101Android, select the libs folder, and paste the armeabi folder and JAR files into it.
  2. Add library resources to the project:
    1. In Workspace Navigator, right-click the SMP101Android project, click Properties, and select Java Build Path.
    2. Click the Libraries tab and select Add JARs.
    3. In the JAR Selection window, expand the SMP101Android\libs folder and select AfariaSSL.jar, ClientLib.jar, sup-client.jar, and UltraLiteJNI12.jar.
    4. Click the Order and Export tab and select those four JARs.
    5. Click OK.