ClassCastException: android.os.BinderProxy cannot be cast ...ActivityRecord
Hi, I see this ClassCaseException : /ActivityManager(213): Bad activity token: android.os.BinderProxy@420b43f0 W/ActivityManager(213): java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.android.server.am.ActivityRecord$TokenW/ActivityManager(213): at com.android.server.am.ActivityRecord.forToken(ActivityRecord.java:295) W/ActivityManager(213): at com.android.server.am.ActivityManagerService.configureSoftkeysActivity(ActivityManagerService.java:15095) W/ActivityManager(213): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:1572)W/ActivityManager(213): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1646) W/ActivityManager(213): at android.os.Binder.execTransact(Binder.java:338) W/ActivityManager(213): at dalvik.system.NativeStart.run(Native Method) I tried to find the right android source code to debug in but the source from Google android-15 don't match with the exception. I think Amazon has made some changes. Is there a place to find the source for the Amazon Android ? Or did any one have one idea what's going wrong ? Regards Stephan
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.