In this case, you do not need multiple APKs.
You can check for multitouch in the code:
if (Integer.parseInt(Build.VERSION.SDK) >= 7) { PackageManager pm = context.getPackageManager(); boolean hasMultitouch = pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH); if (hasMultitouch) { // set multitouch event listeners } else { // set zoom buttons } } else { // set zoom buttons }
You can get the PackageManager from your activity (service) without using context : PackageManager pm = getPackageManager();
There are three types of multitouch that you can check.
Update: You should check the API version before checking the availability of multi-touch. FEATURE_TOUCHSCREEN_MULTITOUCH is only available from API 7. I updated the sample code.
Sergey Glotov
source share