Hello All,

I have a ListActivity with the custom ListAdapter. On clicking a
button in rowlayout of list item I get a custom dialog with a couple
of buttons. Since the Custom dialog carries same buttons and should
not be created again and again even if the user clicks on several
buttons of list items in succession, so I have maintained only one
object of the custom dialog in my custom ListAdapter. But, during
stress testing I am getting the following log:


ERROR/AndroidRuntime(7759): Uncaught handler: thread main exiting due
to uncaught exception
ERROR/AndroidRuntime(7759): java.lang.ClassCastException:
android.widget.LinearLayout
ERROR/AndroidRuntime(7759):     at appln.testlist.TestListAdapter
$1.onClick(TestListAdapter.java:206)
ERROR/AndroidRuntime(7759):     at
android.view.View.performClick(View.java:2364)
ERROR/AndroidRuntime(7759):     at
android.view.View.onTouchEvent(View.java:4198)
ERROR/AndroidRuntime(7759):     at
android.view.View.dispatchTouchEvent(View.java:3728)
ERROR/AndroidRuntime(7759):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:852)
ERROR/AndroidRuntime(7759):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
ERROR/AndroidRuntime(7759):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
ERROR/AndroidRuntime(7759):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
ERROR/AndroidRuntime(7759):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
ERROR/AndroidRuntime(7759):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
ERROR/AndroidRuntime(7759):     at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:
1107)
ERROR/AndroidRuntime(7759):     at
android.app.Dialog.dispatchTouchEvent(Dialog.java:643)
ERROR/AndroidRuntime(7759):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
ERROR/AndroidRuntime(7759):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
ERROR/AndroidRuntime(7759):     at
android.os.Handler.dispatchMessage(Handler.java:99)
ERROR/AndroidRuntime(7759):     at android.os.Looper.loop(Looper.java:
123)
ERROR/AndroidRuntime(7759):     at
android.app.ActivityThread.main(ActivityThread.java:4363)
ERROR/AndroidRuntime(7759):     at
java.lang.reflect.Method.invokeNative(Native Method)
ERROR/AndroidRuntime(7759):     at
java.lang.reflect.Method.invoke(Method.java:521)
ERROR/AndroidRuntime(7759):     at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
ERROR/AndroidRuntime(7759):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
ERROR/AndroidRuntime(7759):     at
dalvik.system.NativeStart.main(Native Method)





I am not getting it always, or lets say it appears in very random
manner so, I have no clue about finding the solution or spoting the
problem area. Any help or suggestion regarding this is quite welcome!


Thanks and Regards,
Ankita

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to