Error in logs of Android application configured to use adaptive icons

Document ID : KB000118419
Last Modified Date : 24/10/2018
Show Technical Document Details
Issue:
encountering error in logs of Android application configured to use adaptive icons
We recently updated our Android application to use adaptive icons. Everything is working fine however we did noticed a CA related error in the logs that seems to be related to this change.

11-27 09:48:32.140 18545 18570 E [CA MAA]: Error in retrieving Application Icon 
11-27 09:48:32.140 18545 18570 E [CA MAA]: java.lang.ClassCastException: android.graphics.drawable.AdaptiveIconDrawable cannot be cast to android.graphics.drawable.BitmapDrawable 
11-27 09:48:32.140 18545 18570 E [CA MAA]: at com.ca.mdo.AppDeviceData.getAppIcon(AppDeviceData.java:828) 
11-27 09:48:32.140 18545 18570 E [CA MAA]: at com.ca.mdo.MessageProcessingHandler.sendAppIcon(MessageProcessingHandler.java:397) 
11-27 09:48:32.140 18545 18570 E [CA MAA]: at com.ca.mdo.MessageProcessingHandler.process(MessageProcessingHandler.java:322) 
11-27 09:48:32.140 18545 18570 E [CA MAA]: at com.ca.mdo.MessageProcessingHandler.handleMessage(MessageProcessingHandler.java:63) 
11-27 09:48:32.140 18545 18570 E [CA MAA]: at android.os.Handler.dispatchMessage(Handler.java:106) 
11-27 09:48:32.140 18545 18570 E [CA MAA]: at android.os.Looper.loop(Looper.java:164) 
11-27 09:48:32.140 18545 18570 E [CA MAA]: at android.os.HandlerThread.run(HandlerThread.java:65) 
11-27 09:48:38.139 18545 18570 D [CA MAA]: GlobalCounter Incrementing:::1
Resolution:
This is a known issue with the new version of the Android OS and has been fixed in the latest version of the SDK.
So for time being, this trace can be ignored as it doesn't affect the functionality of the application.