Getting the number of touch points supported

I know that the number of touch points supported differs from device to device, but is there a way through the API or through the code to get this number for the device?

+3
source share
1 answer

You can distinguish between different broad multitouch classes (none, just pinch gestures, true 2-point multitouch, true 5-point multitouch) by searching for the result of PackageManager # getSystemAvailableFeatures () for the various "android.hardware.touchscreen. *" Functions listed here .

If you want to know exactly how many touches can be present, you just need to watch MotionEvents when they enter.

+3
source

All Articles