The application can download the custom resources using this API. The customized resource bundles are assigned to application connections in the SCC.
public byte[] getCustomResourceBundle (String CUSTOMIZATION_RESOURCE, String UserName, String Password) throws com.sybase.mo.MessagingClientException
When a notification is received for updates made to the CUSTOMIZATION_RESOURCE property, this API returns the customization resource bundle as binary data.
LiteMessagingClient.initInstance(getApplicationContext(), appName);
LiteMessagingClient lm= LiteMessagingClient.getInstance();
EndPointListner epl=new EndPointListner();
lm.addConfigurationChangeListener(epl);
serviceDocPath = las.getApplicationEndPoint();
 
public class EndPointListner implements SUPLiteConfigurationChangeListener{
 
      @Override
      public void configurationHasChanged(int arg0, String arg1) {
            Log.i("Configuration has changed", "Value: "+arg1);
            String Custom_resource = "";
            if(arg0 == CUSTOMIZATION_RESOURCES)
            {
                  LiteAppSettings las = new LiteAppSettings();
                  byte[] Property_metadata;
                  try {
                              Property_metadata = las.getCustomResourceBundle(arg1,"supuser2","s3puser");
                        
                  } catch (MessagingClientException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                  }
                  catch (UnsupportedEncodingException e) {
                              // TODO Auto-generated catch block
                              e.printStackTrace();
                        }
                  
                  
                  Log.i("MDP","Customiation resources test"+Custom_resource );
                  
            }
            
      }
 
}