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

I'm trying to figure out how to programmatically know that the 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 is no dialer.

+3
source share
1 answer

Try using PackageManagerand queryIntentActivities()to see if there are matches in ACTION_DIALor ACTION_CALL Intent. If not, it will be a reasonable test. I haven't tried this on my tab yet, so I have no idea if this trick will work.

, Android- . , Google Tab . Android ( ), , , .

+3

Source: https://habr.com/ru/post/1779494/


All Articles