ExpandableListView, during the super.onCreate(Bundle savedState)
method, when it is trying to restore the saved state of the
ExpandableListView. I'm not sure you have the complete error log
there, but I don't see the actual problem.
I would guess that you are doing a cast on an object that you
shouldn't be. Now I have plumbed the depths of profundity. :-)
Seems you'll have to get in there and do some debugging. Perhaps
someone else will see more than I did in a cursory glance.
On May 26, 8:40 am, dillipk <codersnet2...@gmail.com> wrote:
> Hello,
> My app crashes when the device orientation changes..Tried debugging
> on real device, but I have no clue where the crash exactly happens.. I
> would appreciate if someone could throw some light on this:
>
> Below is the error log:
>
> 05-26 10:33:48.705: WARN/dalvikvm(8821): threadid=3: thread exiting
> with uncaught exception (group=0x4001b180)
> 05-26 10:33:48.711: ERROR/AndroidRuntime(8821): Uncaught handler:
> thread main exiting due to uncaught exception
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.itd.asg.app/com.itd.asg.app.AsgCentralActivity}:
> java.lang.ClassCastException: android.widget.ExpandableListView
> $SavedState
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2496)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2512)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:
> 3625)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.ActivityThread.access$2300(ActivityThread.java:119)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1867)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.os.Looper.loop(Looper.java:123)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.ActivityThread.main(ActivityThread.java:4363)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> java.lang.reflect.Method.invoke(Method.java:521)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:860)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> dalvik.system.NativeStart.main(Native Method)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): Caused by:
> java.lang.ClassCastException: android.widget.ExpandableListView
> $SavedState
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.widget.ListView.onRestoreInstanceState(ListView.java:3462)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.view.View.dispatchRestoreInstanceState(View.java:5940)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.view.ViewGroup.dispatchThawSelfOnly(ViewGroup.java:1140)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.widget.AdapterView.dispatchRestoreInstanceState(AdapterView.java:
> 767)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
> 1127)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
> 1127)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
> 1127)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
> 1127)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
> 1127)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
> 1127)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
> 1127)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.view.View.restoreHierarchyState(View.java:5919)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWin dow.java:
> 1454)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.Activity.onRestoreInstanceState(Activity.java:835)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.TabActivity.onRestoreInstanceState(TabActivity.java:58)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.Activity.performRestoreInstanceState(Activity.java:807)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentat ion.java:
> 1096)
> 05-26 10:33:48.821: ERROR/AndroidRuntime(8821): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2473)
>
> Thanks in advance
>
> Regards,
> DK
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment