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:
- Set up a MicroStrategy Android SDK environment.
- Download the SDK zip file and import it to Android Studio.
- Go to app > res > values folder, and create a new file named with
bool.xml
. -
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> - 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.