Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android: how can I verify, that device support multitouch?

How can I verify, that device support multitouch event? If device have resistent display, multitouch is not possible. Is that way to find out, what kind of display is in device, or if device support multitouch?

Thanks.

like image 444
Peter Avatar asked Apr 07 '11 17:04

Peter


People also ask

Which MotionEvent constant is used to detect multi-touch gesture?

This starts the gesture. The pointer data for this pointer is always at index 0 in the MotionEvent . ACTION_POINTER_DOWN —For extra pointers that enter the screen beyond the first. The index of the pointer that just went down can be obtained by using getActionIndex() .


1 Answers

If you need multitouch, include:

<uses-feature android:name="android.hardware.touchscreen.multitouch" />

in your manifest. Your application will not be listed in the Market for devices that lack multitouch.

If you wish to conditionally support multitouch, use PackageManager and hasSystemFeature() to see if android.hardware.touchscreen.multitouch is available.

like image 146
CommonsWare Avatar answered Oct 19 '22 04:10

CommonsWare