Interesting: http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_TELEPHONY suggests that the telephony feature is since API level 7. Which makes it confusing why the check is not working on API level 7.
I didn't see the (much more convenient) hasSystemFeature() method before, but I doubt that is causing the problem... On 21 April 2011 18:58:58 UTC+8, Mark Carter <mjc1...@googlemail.com> wrote: > That last link was broken: > http://developer.android.com/search.html#q="android.hardware.telephony"&t=0<http://developer.android.com/search.html#q=> > > <http://developer.android.com/search.html#q=>This next link shows it's > definitely the correct feature: > http://developer.android.com/guide/practices/optimizing-for-3.0.html#Telephony > > On 21 April 2011 18:55, String <sterling.ud...@googlemail.com> wrote: > >> Do you mean android.telephony (no "hardware.", as was pointed out)? The >> docs say since API level 1, but having the feature string wrong could be >> your problem. >> >> String >> >> -- >> 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 >> > > -- 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