Is there any way to get programatically the maximum number of individual fingers that the touch screen can detect simultaneously?
I've only been able to find FEATURE_TOUCHSCREEN_MULTITOUCH
, FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT
and FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND
, which only tell me if the hardware supports "2 or more" and "5 or more", respectively.
As far as I've seen, there's no way to get the exact number of fingers supported.
I've been able to find out that my Nexus S supports a maximum of 5 fingers with the following code:
public boolean onTouchEvent(MotionEvent event) {
Log.d("multitouch", event.getPointerCount() + " fingers detected");
return super.onTouchEvent(event);
}
But I'd like to be able to get this data from some sort of environment variable so my users won't have to go through a "detection screen" just to get this information.