Feature for getSystemAvailableFeatures() and hasSystemFeature(String).
The device's touch screen is capable of tracking a full hand of fingers fully independently -- that is, 5 or more simultaneous independent pointers.
Constant Value: "android.hardware.touchscreen.multitouch.jazzhand"
1. Get a PackageManager Instance named myPackageManager.
Constant Value: "android.hardware.touchscreen.multitouch.jazzhand"
1. Get a PackageManager Instance named myPackageManager.
2. Create a Boolean Variable named bolTMJSupported.
3. Set the Minimum and Target SDK version to 9 or greater.
4. In the onCreate method, add the below code. This will return the touch screen multi-touch jazzhand ability to a boolean named bolTMJSupported. It will then display a toast displaying the touch screen multi-touch jazzhand ability of the device to the user.
bolTMJSupported = myPackageManager.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND);
if (bolTMJSupported) {
Toast.makeText(this, "Device has Touch Screen Multi-Touch Jazzhand capability", Toast.LENGTH_LONG).show();
} else {
Toast.makeText(this, "No Touch Screen Multi-Touch Jazzhand capability!", Toast.LENGTH_LONG).show();
}
5. Compile and run!
Resources:
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND
http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND