Identify Android device features

I am trying to determine if the device I'm running on is able to send / receive phone calls, emails and SMS.

I found that I can use TelephonyManager to get the phone number of the device and on devices without the ability to make calls, the phone number is zero. this is one problem. I still have not found a way to discover the capabilities of email and SMS.

+3
source share
1 answer

SMS is probably useless without a cell signal, so you can use the same trick for this.

(= networking), , , NetworkInterface.getNetworkInterfaces() , . , .

+1

Source: https://habr.com/ru/post/1796419/


All Articles