I've already read some related question about it but most of them were targeting calls, not SMS. What I've found so far is:
TelephonyManager manager = (TelephonyManager) context
.getSystemService(Context.TELEPHONY_SERVICE);
if (manager.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE) {
// I guess here are devices that are unable to send SMS
} else {
// can send SMS
}
Is this true, devices with TelephonyManager.PHONE_TYPE_NONE are unable to send SMS? I don't really understand the description of TelephonyManager.PHONE_TYPE_NONE, which is "No phone radio."
Thanks!
Yes with TelephonyManager.PHONE_TYPE_NONE you can't send SMS.As radio network is required to send SMS. However you can use some IP based messengers like whats app, ebuddy on them
if you see android.hardware.telephony (which you specify using uses-feature tag in Android manifest file), you will notice send/read/write SMS are mentioned under this feature.
Galaxy TAB example,Can't make calls still phone type comes as PHONE_TYPE_CDMA, so adding additional check for line number will be required for such cases, as shown in above link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With