Is there currently a way of detecting if the current device is actually a phone? (It can make phonecalls)
The Phone
api includes only a single function (call
), but no way of detecting if the device is capable of making calls, or if it’s just a tablet without a dialer or telephone number.
An app I’m working on currently features call buttons, but as it’s also available for tablets and devices not capable of making calls, I would not want the buttons to appear in these cases. I guess I could maybe guess based on the size of the display, but I don’t want to not offer the option on larger phones or tablets capable of making calls.
(If this isn’t yet possible, it would seem like Environment.phone
would be the best way of marking this)
Cheers