How can I tell whether a given device has the ability to make phone calls?
For example, my Galaxy Tablet cannot initiate call, its not a phone. I want to detect that before doing a call to isIntentAvailable(context, Intent.ACTION_DIAL). I’ve tried checking the isIntentAvailable for this, but that doesn’t seem to be the way to go.
EDIT I’m surprised it comes back
PHONE_TYPE_CDMA. Here’s another possibility:This will require the
READ_PHONE_STATEpermission.