Hi,
Recently I started to receive reports on one of my old app, and this
error is totally new to me. Seems like the app might have some issues
with new Android builds?
--
java.lang.IllegalArgumentException: pointerIndex out of range
at android.view.MotionEvent.nativeGetAxisValue(Native Method)
at android.view.MotionEvent.getX(MotionEvent.java:1549)
--
The offending code looks innocent to me, any idea? This is to support
multitouch, and one of the reporting device with the error is a
Honeycomb tablet.
if (event.getPointerCount() > 1) {
int id = event.getPointerId(1);
int x1 = (int) event.getX(id);
int y1 = (int) event.getY(id);
...
}
--
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