12-30-2010 06:29 PM
Does anyone know a way to programatically test if a device has a SurePress touch screen other than checking the model number?
The only thing I've found is TouchScreen.isSupported() but that doesn't really help.
Solved! Go to Solution.
12-30-2010 08:22 PM
You would need to make two versions of the app. One for pre-6.0 and one for 6.0 and higher. The reason for this is 4.7 to 5.0, only the Storms existed with a touch screen. The Torch uses 6.0 (and higher presumably).
In 6.0 and higher you have the DeviceCapability class. In that class you have the isTouchClickSupported() function which is a wrapper for isSupported(TYPE_TOUCH_CLICK).
If you can only have one build then you need to check model numbers.