0

What I'm trying to do is, When i click on the application screen I want to get how many Fingers tap on the screen ? Means 1 finger tap, 2 finger tap and three finger tap.

1 Answers1

0

Use MotionEvent.getPointerCount(). You can read more details here: Respond to touch events

public boolean onTouchEvent(MotionEvent event) {
    int action = event.getAction();
    switch (action & MotionEvent.ACTION_MASK) {
        case MotionEvent.ACTION_POINTER_DOWN:
            int count = event.getPointerCount();
            // TODO: Do something you want here
            break;
    }
}
iForests
  • 6,757
  • 10
  • 42
  • 75