MicroStrategy ONE

Set Up an Image Bundle in Android

This function can help you reduce the loading time of images if the connectivity status is crushed when communicating with server. It loads the images from local folder instead of via internet or a server.

In order to accomplish image bundle function in Android Studio, perform the following steps:

  1. Set up a MicroStrategy Android SDK environment.
  2. Download the SDK zip file and import it to Android Studio.
  3. Go to appres > values folder, and create a new file named with bool.xml.
  4. In the text editor, add following values:

    Copy
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
    <bool name="use_sdk_bundle_image">true</bool>
    </resources>
  5. Put the images under corresponding drawable-xxx folder with the same name. Image types of .jpg, .png, and .bmp are supported. Embedded images are not supported.