开发者

How can I tell that Samsung Galaxy Tab cannot place phone calls?

I'm trying to figure out how to programatically know that Samsung Galaxy Tab cannot place phone calls. When I 开发者_StackOverflow中文版call telephonyManager.getPhoneType() it returns PHONE_TYPE_CDMA. When I call telephonyManager.getLine1Number() it returns a valid phone number.

However, there's no dialer.


Try using PackageManager and queryIntentActivities() to see if there are any matches on an ACTION_DIAL or ACTION_CALL Intent. If there are none, that would be a reasonable test. I have not tried this on my Tab yet, so I have no idea if this trick will work.

Bear in mind that Android devices are supposed to be phones. I have no idea why Google let the Tab pass the compatibility tests without a dialer. The next version of Android should have more official non-phone support (for tablets and TVs), and so there will hopefully be a better solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜