Hi!
I am trying to track multiple touch points over time and according to
the documentation to do this I should:
"Use the getPointerId(int) method to obtain a pointer id to track
pointers across motion events in a gesture"
Now after long experiments I simply replaced my own touch handling
with this simple "dump" routine to see what's going on:
int count = event.getPointerCount();
for (int p = 0; p < count; p++) {
Log.i("APP"," Pointer: " + event.getPointerId(p) + " " +
event.getX(p) + " " + event.getY(p));
}
Now I place 2 fingers on the screen and use a third that I
continuously lift and put back down again onto the screen without
lifting the first two. Say I get the pointer ids 0 and 1 for the first
two and the above loop then shows an id 2 for the third one. Strange
thing now is that after a couple of times of doing this, suddenly the
routine above shows me pointer ids 0 and 2 for the first two and the
third touch becomes 1 as if the pointer ids are not actually
persistent over time?
Anyone else experience something like this?.
Seeing this on an HTC Desire HD running Android 2.2.1
Thanks,
rob.
--
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