I believe you can safely assume that devices prior to Android 2.x do not support multitouch. So I'd catch the exception and conclude there's no multitouch.
On Mar 23, 7:43 am, Archana <archana.14n...@gmail.com> wrote: > Hi, > Can anyone tell me ,how we can find whether Multitouch support is > available or not in various device? > I tried like this > > try { > FeatureInfo[] info > =_main.getPackageManager().getSystemAvailableFeatures(); > for (int i = 0; i < info.length; i++) { > System.out.println("Info" +info[i]); > > if(info[i].equals(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH)){ > manufacturer =true; > Log.e("appVersion", "--->"+manufacturer); > return manufacturer; > } > } > > Its working fine for Droid and nexus,But for 1.5 version it is > throwing > 03-23 20:06:41.170: ERROR/AndroidRuntime(2777): java.lang.VerifyError: > > Please tell me how we can solve this.I read in Forum that we can use > Java Reflection.Can anyone tell me how we can use that. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.