Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - determine number of fingers touching

Tags:

android

How do you determine the number of fingers are touching the screen at the same time?

like image 447
ina Avatar asked Sep 27 '12 06:09

ina


1 Answers

You can get through your MotionEvent of in onTouchEvent(MotionEvent event)

int pointerCount = event.getPointerCount();

MotionEvent.getPointerCount() returns the number of active pointers

like image 66
Mohammed Azharuddin Shaikh Avatar answered Oct 17 '22 21:10

Mohammed Azharuddin Shaikh