I am developing android honeycomb application and I manage to done drag and drop activity nicely.The only problem I face is whenever my drag event being conducted about 30 times, I cant drag anymore the view and the screen just freeze.
Following is the Log Cat : 04-05 14:55:28.455: E/View(2484): Unable to initiate drag 04-05 14:55:28.455: E/View(2484): java.lang.IllegalArgumentException 04-05 14:55:28.455: E/View(2484): at android.view.Surface.lockCanvasNative(Native Method) 04-05 14:55:28.455: E/View(2484): at android.view.Surface.lockCanvas(Surface.java:335) 04-05 14:55:28.455: E/View(2484): at android.view.View.startDrag(View.java:11210) 04-05 14:55:28.455: E/View(2484): at learning.apps.utm.bajupage.onTouch(bajupage.java:84) 04-05 14:55:28.455: E/View(2484): at android.view.View.dispatchTouchEvent(View.java:4596) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java: 1494) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1227) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java: 1494) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1227) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java: 1494) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1227) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java: 1494) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1227) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java: 1494) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1227) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java: 1494) 04-05 14:55:28.455: E/View(2484): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1227) 04-05 14:55:28.455: E/View(2484): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1700) 04-05 14:55:28.455: E/View(2484): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: 1270) 04-05 14:55:28.455: E/View(2484): at android.app.Activity.dispatchTouchEvent(Activity.java:2277) 04-05 14:55:28.455: E/View(2484): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1680) 04-05 14:55:28.455: E/View(2484): at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2272) 04-05 14:55:28.455: E/View(2484): at android.view.ViewRoot.handleMessage(ViewRoot.java:1958) 04-05 14:55:28.455: E/View(2484): at android.os.Handler.dispatchMessage(Handler.java:99) 04-05 14:55:28.455: E/View(2484): at android.os.Looper.loop(Looper.java:126) 04-05 14:55:28.455: E/View(2484): at android.app.ActivityThread.main(ActivityThread.java:3997) 04-05 14:55:28.455: E/View(2484): at java.lang.reflect.Method.invokeNative(Native Method) 04-05 14:55:28.455: E/View(2484): at java.lang.reflect.Method.invoke(Method.java:491) 04-05 14:55:28.455: E/View(2484): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:841) 04-05 14:55:28.455: E/View(2484): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 04-05 14:55:28.455: E/View(2484): at dalvik.system.NativeStart.main(Native Method) so what is the problem?Why the drag event cannot be conducted after 30 times? Really need your help in this.thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

