Download the customization resources as binary data as notified using CUSTOMIZATION_RESOURCE property.
1. Initialize and set the listener
ODPClientConnection.initInstance(getApplicationContext(), appName);
ODPClientConnection client= ODPClientConnection.getInstance();
configChangeListener listener=new configChangeListener();
client.addConfigurationChangeListener(listener);
2. Class the implements the IODPConfigurationChangeListener
public class configChangeListener implements IODPConfigurationChangeListener{public void onConfigurationChange(int key, String value) {
//Is called when there is a customization bundle added/changed from SCC
if(key==CUSTOMIZATION_RESOURCES)
{
try {
ODPAppSettings las = new ODPAppSettings();
byte bundleData[] = null;
try {
bundleData = las.getCustomizationResourceBundle(value,Helper.USERNAME, Helper.PASSWORD);
} catch (ODPException e) {
e.printStackTrace();
}ZipInputStream zipStream = new ZipInputStream(new ByteArrayInputStream(bundleData));
ZipEntry entry = null;
while ((entry = zipStream.getNextEntry()) != null)
{
String entryName = entry.getName();
zipStream.closeEntry();
Log.i("Tag", "FileName***"+entryName+"size***"+entry.getCompressedSize());
}
zipStream.close();
}
catch (IOException e) {
throw new RuntimeException(e);
}
}
}
}