Using Java library

NOTE on syntax: as Java doesn't have properties, in Java object properties are represented by getPropertyName() and setPropertyName() methods.

Windows

In your project

  1. add a reference to callbacktech.cbfsstorage.jar library. These are the wrapper and JNI classes available for CBFS Storage.
  2. place libjnicbfsstorage.so next to your JAR file.

Android

In your project

  1. add a reference to callbacktech.cbfsstorage.jar library. These are the wrapper and JNI classes available for CBFS Storage.
  2. place libjnicbfsstorage.so under /lib/{architecture name} directory to ensure its correct packaging into the apk
  3. ensure you have read/write access permission to the location you want to let the container be placed. Eg. add SD card access permission to the list of required permissions by adding the following line to AndroidManifest.xml file:
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Consider a hello-world project as a quickstart to simplify development.

See How To Start using the API topic for further instructions.