title: how to debug this ClassCastException ? (where the stack trace seems useless)
body: <p>The stack trace below seems useless to me... does anyone have an idea how to find out what caused the crash?</p>
  
  <pre><code>09-20 13:40:11.136: D/AndroidRuntime(8819): Shutting down VM
  09-20 13:40:11.136: W/dalvikvm(8819): threadid=1: thread exiting with uncaught exception (group=0x410b82a0)
  09-20 13:40:11.146: E/AndroidRuntime(8819): FATAL EXCEPTION: main
  09-20 13:40:11.146: E/AndroidRuntime(8819): java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.ListView.setupChild(ListView.java:1809)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.ListView.makeAndAddView(ListView.java:1778)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.ListView.fillDown(ListView.java:678)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.ListView.fillFromTop(ListView.java:739)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.ListView.layoutChildren(ListView.java:1628)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.AbsListView.onLayout(AbsListView.java:2303)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.RelativeLayout.onLayout(RelativeLayout.java:948)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1513)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.LinearLayout.onLayout(LinearLayout.java:1426)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1513)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.LinearLayout.onLayout(LinearLayout.java:1426)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.RelativeLayout.onLayout(RelativeLayout.java:948)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1513)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.LinearLayout.onLayout(LinearLayout.java:1426)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.View.layout(View.java:14063)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewGroup.layout(ViewGroup.java:4655)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2017)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1838)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1131)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4611)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.Choreographer.doCallbacks(Choreographer.java:555)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.Choreographer.doFrame(Choreographer.java:525)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.os.Handler.handleCallback(Handler.java:615)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.os.Handler.dispatchMessage(Handler.java:92)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.os.Looper.loop(Looper.java:137)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at android.app.ActivityThread.main(ActivityThread.java:4898)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at java.lang.reflect.Method.invokeNative(Native Method)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at java.lang.reflect.Method.invoke(Method.java:511)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
  09-20 13:40:11.146: E/AndroidRuntime(8819):     at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>Is there a technique to use to solve this ?</p>