public boolean isOpen() {
        return camera != null;
    }
This returns false if the camera is not opened yet, failed to open, or has
been closed.
zxing-android-embedded/src/com/journeyapps/barcodescanner/camera/CameraManager.java