There is a call function in my application. When you click the Call button, the application will launch a phone number with a phone number.
Now, if any device / tablet does not have a call function, in this case I want to check this
if(isSupportCalling)
else
to avoid application crash.
Since this permission only allows android to make it visible and able to download / install the application on a device / tablet that does not support call functionality.
<uses-feature
android:name="android.hardware.telephony"
android:required="false"/>
Since I have seen very few SO threads related to this, but have not found a reliable way to do this.
source
share