I used the following code to detect the single finger touch and double finger touch. The code detects the double finger touch (when count==2).
I need t
You must need to user PointerID for MultiTouch. See this Complete Example
private View.OnTouchListener OnTouchListener = new View.OnTouchListener() {
public boolean onTouch(View view, MotionEvent event) {
int pointerIndex = ((event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK) >> MotionEvent.ACTION_POINTER_ID_SHIFT);
int action = event.getAction() & MotionEvent.ACTION_MASK;
int pointerId = event.getPointerId(pointerIndex);
Log.i("", "Pointer ID = " + pointerId);
switch (action) {
case MotionEvent.ACTION_POINTER_UP: {
break;
}
}
return true;
}
};