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.
SMS is probably useless without a cell signal, so you can use the same trick for this.
(= networking), , , NetworkInterface.getNetworkInterfaces() , . , .
NetworkInterface.getNetworkInterfaces()
Source: https://habr.com/ru/post/1796419/More articles:Automapper: how to ignore a member in VB.NET - automapperConverting date formats for storage - javareStructuredText for SQL? - sqlIterating over a set of event handlers, how do you safely remove a handler from * inside * a callback? - javaignore part of directory in mercurial - mercurialResize RAM for Windows Mobile 5.0 Emulator - visual-studio-2008Кодовые контракты предупреждают о возможном сбое вызова "Предположим" - c#Best way to dynamically embed symfony forms? - symfony1Cache complex calculation in Rails 3 model - ruby | fooobar.comCan I get information about which application sent the intent? - androidAll Articles