How to detect if device is capable of calling and messaging

后端 未结 6 1379
滥情空心
滥情空心 2020-12-20 12:03

Some devices ie. Galaxy Tablet 10.1 can only send SMS, but cannot call. Some other devices like Asus Transformer don\'t even have SIM card.

How can I detect if devic

6条回答
  •  天命终不由人
    2020-12-20 12:59

    Maybe you can query the PackageManager whether the system contains any component that can respond to ACTION_CALL and ACTION_SENDTO intents? You might need to add the "tel:" and "smsto:" scheme in the URI.

提交回复
热议问题