How to make Multiple APKs based on uses-features "android.hardware.telephony" in Android? -
How to make Multiple APKs based on uses-features "android.hardware.telephony" in Android? -
i want utilize multiple apk back upwards in android create 2 different apks.
one apk devices supports "phone phone call & sms".another apk devices doesn't back upwards "phone phone call & sms".
rest of features mutual in both apks.
i've achieved first apk when maintain required feature & permissions in manifest.xml
.
<uses-feature android:name="android.hardware.telephony" android:required="true"/> <uses-permission android:name="android.permission.send_sms"/>
i tried create apk devices should not have "phone phone call & sms" feature next manifest
changes.
<uses-feature android:name="android.hardware.telephony" android:required="false"/> <!-- <uses-permission android:name="android.permission.send_sms"/> -->
but, did't succeed. please allow me know how accomplish this.
thanks in advance.
there no need create multiple apk.
if use:
<uses-feature android:name="android.hardware.telephony" android:required="false"/>
your apk available devices back upwards feature , device not back upwards it. in code check if instance of telephony adapter null or not:
hassystemfeature(packagemanager.feature_telephony)
or
getphonetype()
android multiple-apk uses-feature
Comments
Post a Comment