I have an app that uses (but does not require) telephony. So (as described by Mark Murphy here: http://commonsware.com/blog/2011/02/25/xoom-permissions-android-market.html) I add the following line to the manifest:
<uses-feature android:name="android.hardware.telephony" android:required="false" /> and then check for the feature at runtime using: private static boolean hasFeature(String feature, Context context) { FeatureInfo[] featureInfos = context.getPackageManager().getSystemAvailableFeatures(); for (FeatureInfo fi : featureInfos) { if (feature.equals(fi.name)) { return true; } } return false; } However, I notice this does not work (returns false) for some devices that definitely do have telephony (e.g. HTC Legend and Motorola Milestone). In both cases, they are running SDK 7, so I wonder whether this particular feature is an SDK 8+ thing? -- 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