I found a tablet without a sim card, I launched it and it really fell. I found this method, to check whether the device has hardware support for "calling" (presence of a sim card):
private static boolean isCallingSupported(Context context) { boolean result = true; PackageManager manager = context.getPackageManager(); Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:12345678912")); List<ResolveInfo> infos = manager.queryIntentActivities(intent, 0); if (infos.size() <= 0) { result = false; } return result; }
Not quite a clean method (due to string number), but working.