Feature for getSystemAvailableFeatures() and hasSystemFeature(String): The device does not have a touch screen, but does support touch emulation for basic events that supports tracking a hand of fingers (5 or more fingers) fully independently. This is an extension of FEATURE_FAKETOUCH for input devices with this capability. Note that unlike a multitouch screen as defined by FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND, not all two finger gestures can be detected due to the limitations described for FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT.
Constant Value: "android.hardware.faketouch.multitouch.jazzhand"
1. Get a PackageManager Instance and save to myPackageManager.
2. Create a Boolean Variable named bolFMJSupported.
3. Set the Minimum and Target SDK version to 13 or greater.
4. In the onCreate method, add the below code. This will return the faketouch mutlitouch jazzhand ability to a boolean named bolFMJSupported. It will then display a toast displaying the faketouch multitouch jazzhand ability on the device to the user.
bolFMJSupported = myPackageManager.hasSystemFeature(PackageManager.FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND);
if (bolFMJSupported) {
Toast.makeText(this, "Device has Faketouch multitouch jazzhand ability", Toast.LENGTH_LONG).show();
} else {
Toast.makeText(this, "No Faketouch multitouch jazzhand ability!", Toast.LENGTH_LONG).show();
}
5. Compile and run!
Resources:
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND
Resources:
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND