Open GoogleCodeExporter opened 8 years ago
[deleted comment]
I have same problem, and the exception is like below.
I am using Android 2.2.
I touched the screen with many fingers.
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): FATAL EXCEPTION: main
06-28 02:39:47.959: ERROR/AndroidRuntime(27959):
java.lang.ArrayIndexOutOfBoundsException
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.MotionEvent.getX(MotionEvent.java:779)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
com.flotandroidchart.flot.FlotChartContainer$1.onTouch(FlotChartContainer.java:1
33)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.View.dispatchTouchEvent(View.java:3762)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(P
honeWindow.java:1677)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow
.java:1107)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.app.Activity.dispatchTouchEvent(Activity.java:2086)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneW
indow.java:1661)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1785)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.os.Handler.dispatchMessage(Handler.java:99)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.os.Looper.loop(Looper.java:123)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
android.app.ActivityThread.main(ActivityThread.java:4627)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
java.lang.reflect.Method.invokeNative(Native Method)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
java.lang.reflect.Method.invoke(Method.java:521)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
06-28 02:39:47.959: ERROR/AndroidRuntime(27959): at
dalvik.system.NativeStart.main(Native Method)
Original comment by kyungin....@gmail.com
on 28 Jun 2011 at 6:40
If you like you can try my build with the fix I wrote about.
See attached file.
Original comment by nab...@gmail.com
on 28 Jun 2011 at 1:16
Attachments:
wawoo~ nab~ you fixed that bug! Thank you so much~~~~
However, I need more kind of chart such as radar chart...
So I tried to use Google chart API.
http://code.google.com/intl/pl-PL/apis/chart/image/docs/making_charts.html
I hope more chart types can be offered in this library~ =) ASAP~
Original comment by kyungin....@gmail.com
on 1 Jul 2011 at 7:21
confirm, it crashes on android 2.3.5:
02-08 12:34:18.549: ERROR/AndroidRuntime(28378): FATAL EXCEPTION: main
java.lang.ArrayIndexOutOfBoundsException
at android.view.MotionEvent.getX(MotionEvent.java:889)
at com.flotandroidchart.flot.FlotChartContainer$1.onTouch(FlotChartContainer.java:135)
at android.view.View.dispatchTouchEvent(View.java:3881)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1750)
at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1135)
at android.app.Activity.dispatchTouchEvent(Activity.java:2096)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1734)
at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2216)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1887)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)
I suppose it does not depend on android version.
Original comment by d...@antonsmirnov.name
on 8 Feb 2012 at 6:35
Original issue reported on code.google.com by
nab...@gmail.com
on 23 Jun 2011 at 8:07