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

前端 未结 4 2125
盖世英雄少女心
盖世英雄少女心 2021-01-04 04:19

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 dev

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-04 04:58

    If you need multitouch, include:

    
    

    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.

提交回复
热议问题