After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more
here .
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser .
Apps Unable initiate drag after 30 times drag event
Hi.I am able to create and drag and drop activity successfully but the only problem I faced is if I drag the view more than about 30 times, the drag event will stop to initiate and I am unable to drag anything. What is the causes?I am using onTouch() to drag the view.
This is the LogCat,Please HELP
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)