Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

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

However, there's no dialer.

like image 569
dhaag23 Avatar asked Dec 06 '25 15:12

dhaag23


1 Answers

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.

like image 162
CommonsWare Avatar answered Dec 12 '25 14:12

CommonsWare