Add compiler and library resources to the Android project.
- Add a compiler resource to the root directory of the
project:
- 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).
- In Workspace Navigator, expand SMP101Android, select the libs folder, and paste the armeabi folder and JAR files into it.
- Add library resources to the project:
- In Workspace Navigator, right-click the SMP101Android project, click Properties, and select Java Build Path.
- Click the Libraries tab and select Add
JARs.
- In the JAR Selection window, expand the SMP101Android\libs folder and select AfariaSSL.jar, ClientLib.jar, sup-client.jar, and UltraLiteJNI12.jar.
- Click the Order and Export tab and select those four
JARs.
- Click OK.