FANDOM



Check whether the device has a camera

http://developer.android.com/guide/topics/media/camera.html#detect-camera

/** Check if this device has a camera */
private boolean checkCameraHardware(Context context) {
    if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){
        // this device has a camera
        return true;
    } else {
        // no camera on this device
        return false;
    }
}

fe



fe


fefe