How to check if an Android device has voice capabilities

后端 未结 4 1975
孤街浪徒
孤街浪徒 2021-02-06 15:11

Does anyone know a good way of programmaticaly checking if an Android device, phone or tablet, has voice capabilities? By voice capabilities I mean capability to make phone call

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 15:52

    In theory, you should be able to use Intent.resolveActivity to do this. There's a problem (described here) with Galaxy tabs in particular. They evidently report that they have calling capability. You can even resolve an intent successfully. Unfortunately, it resolves to a no-op activity.

提交回复
热议问题