ugh!  Thanks for posting this message as this is a gnarly one and an
example of ODM fragmentation if pointed IDs are not indexing correctly
to the proper point data at least. I never was impressed by the
multitouch API and always thought it wasn't thought out well and
simply just tacked onto MotionEvent. Dirty as you say it is correct. I
also wasn't pleased with the lack of documentation and unclear
contract. Perhaps this lack of documentation led to this potential ODM
fault. As for spurious ACTION_DOWN events this could be from varied
quality of touchscreen hardware too.

So from my reading of your post you are saying that pointer IDs are
not recycled and that the data of subsequent pointer IDs is not
correct at the specified array index?

Not looking forward to coming up with a solution for my platform /
middleware / custom event system and certainly am not excited if I
need to buy an Experia Play just for this, but w/ talking with Robert
G. it sounds like button support on this device is a bit wacky too. If
I understand correctly button presses don't generate key events? Hrm;
I hope that is not the case as I hate to have to waste $500+ to fix
these kinds of issues. Likely I'll pick one up, fix the issues, then
sell it.

Regards,
--Mike

On May 16, 12:58 pm, Mario Zechner <[email protected]> wrote:
> A user reported an ArrayIndexOutOfBoundsException today in our multi-
> touch handler. We store x/y/touchState on a per pointer id basis in an
> array. Dirty? Yes, but it worked on all devices so far. Usually
> pointer ids are handed out like this:

-- 
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

Reply via email to