I know this post is old, but the approach to this is wrong. If your Kindles problem is hardware related, that is, Kindles does not have camera or camera support, you need to check the camera support, not the device type. What if other devices do not support the camera? Instead of a suggested answer try this
public static boolean isCameraAvailable(Context context) {
PackageManager packageManager=context.getPackageManager();
if (packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY)) {
return true;
} else {
return false;
}
}
This is much better than detecting if the device is shameful, otherwise it makes a different kind of ignition design.
source
share