How to check if multitouch on Android is available?

Hi there,

Does anyone know if there is a way to check if multitouch is supported on an Android device?  I know this is possible through through native code such as:

 PackageManager pm = context.getPackageManager(); boolean hasMultitouch = pm.hasSystemFeature(PackageManager.FEATURE\_TOUCHSCREEN\_MULTITOUCH);

But is this possible through Corona?  The system.activate function does not return a value, and system.getInfo doesn’t seem to refer to it.

Many thanks in advance,

Simon.

Hi @simon6,

I believe there is a workaround that’ll accomplish this on Android. You can use the “system.getInputDevices()” function and check for any devices of type “touchscreen”. However, I don’t think the device info provides the number of simultaneous touches it supports. Worth a try, however. :wink:

http://docs.coronalabs.com/api/library/system/getInputDevices.html

Take care,

Brent

I’ll give it a try.

Many thanks,

Simon

Hi @simon6,

I believe there is a workaround that’ll accomplish this on Android. You can use the “system.getInputDevices()” function and check for any devices of type “touchscreen”. However, I don’t think the device info provides the number of simultaneous touches it supports. Worth a try, however. :wink:

http://docs.coronalabs.com/api/library/system/getInputDevices.html

Take care,

Brent

I’ll give it a try.

Many thanks,

Simon

@simon6 - just want to check to see if you have been able to figure out a way to check if an Android device supports multitouch?

Thx!

Andrew

I’m afraid I didn’t - apart from being able to find out any sort of touch screen was attached, I wasn’t able to find out whether it supported multitouch or not.

Simon

@Simon - BTW, do you have a sense how much of an issue this still is for Android? We did some research on this online, it seems like a couple years ago, this was a really big issue. And frankly that’s why a few years ago, we actually assumed that all Android devices aren’t multi-touch capable in our apps. But we can’t seem to find any reliable data on how prevalent the issue still is today.

But, with the modern devices, you would think this shouldn’t be an issue any more. Also, multi-touch has been supported since Android 2.2, a while ago. I just have a hard time imagining HD device makers still not supporting this…

@simon6 - just want to check to see if you have been able to figure out a way to check if an Android device supports multitouch?

Thx!

Andrew

I’m afraid I didn’t - apart from being able to find out any sort of touch screen was attached, I wasn’t able to find out whether it supported multitouch or not.

Simon

@Simon - BTW, do you have a sense how much of an issue this still is for Android? We did some research on this online, it seems like a couple years ago, this was a really big issue. And frankly that’s why a few years ago, we actually assumed that all Android devices aren’t multi-touch capable in our apps. But we can’t seem to find any reliable data on how prevalent the issue still is today.

But, with the modern devices, you would think this shouldn’t be an issue any more. Also, multi-touch has been supported since Android 2.2, a while ago. I just have a hard time imagining HD device makers still not supporting this…