One of our Apps is getting reports of a ClassCast exception but the Stack report does not show enough detail to point to the Apps code. The stack trace is shown below. I have been looking at Android code but cannot find the "PhoneWindow.adjustActionBarPosition". Has this error been seen before? any suggestions on posible cause? "java.lang.ClassCastException at com.android.internal.policy.impl.PhoneWindow.adjustActionBarPosition(PhoneWindow.java:499) at com.android.internal.policy.impl.PhoneWindow.access$1600(PhoneWindow.java:112) at com.android.internal.policy.impl.PhoneWindow$1.onSystemUiVisibilityChange(PhoneWindow.java:2958) at android.view.View.dispatchSystemUiVisibilityChanged(View.java:13215) at android.view.ViewGroup.dispatchSystemUiVisibilityChanged(ViewGroup.java:1197) at android.view.ViewRootImpl.handleDispatchSystemUiVisibilityChanged(ViewRootImpl.java:3533) at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2628) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4491) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)"
Thank you for your post. Can you please confirm if you are able to reproduce this error locally? Also does this exception cause any problems in your app functionality? If this exception causes any app issue, then please raise a ContactUs(
https://developer.amazon.com/help/contactus.html) with your app details and one of our support engineers will look into this issue.
Thank you for your reply. No we am not able to reproduce this error in any way locally and we do not know whether or not it causes an App issue. Clearly I am keen to resolve this issue but difficult to do if I cannot reproduce. I was hoping it had been met before and that some pointers could be provided? Regards
Hi, ClassCastException can occur due to many reasons. One of the reason can be incomplete application details in the manifest file. Just by looking at the exception, it is not clear why you are getting this. Please raise a ContactUs(
https://developer.amazon.com/help/contactus.html) with us with the details of your manifest file (along with the app details) and one of our support engineer will assist you on this. Thank you.