How to identify three fingers in android

I want to detect three fingers on the android screen. I can detect up to two fingers. How to detect three fingers? I heard some where this android is capable of detecting 2 fingers. This is true?

+7
source share
1 answer

This code will help you:

public boolean onTouchEvent(MotionEvent event) { int action = event.getAction(); switch(action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_POINTER_DOWN: // multitouch!! - touch down int count = event.getPointerCount(); // Number of 'fingers' in this time break; } } 
+10
source

All Articles