android - Making app compatible with tablets -
well have app have option read device sms , missed calls. not needed feature, present. problem have permissions:
<uses-permission android:name="android.permission.read_contacts"> </uses-permission > <uses-permission android:name="android.permission.receive_sms"> </uses-permission > <uses-permission android:name="android.permission.read_sms"> </uses-permission > <uses-permission android:name="android.permission.read_phone_state"> </uses-permission >
and i'm sure of them making app incompatible tablets, tried change to:
<uses-feature android:name="android.permission.read_contacts" android:required="false"> </uses-feature> <uses-feature android:name="android.permission.receive_sms" android:required="false"> </uses-feature> <uses-feature android:name="android.permission.read_sms" android:required="false"> </uses-feature> <uses-feature android:name="android.permission.read_phone_state" android:required="false"> </uses-feature>
but app wont show sms when running in phone. there else should include in order make work?
thanks
you've got right idea. permissions imply features, isn't 1-to-1 ratio.
the implied feature sms is:
<uses-feature android:name="android.hardware.telephony" android:required="false" />
here list of permissions imply features:
http://developer.android.com/guide/topics/manifest/uses-feature-element.html
Comments
Post a Comment