@Override
        public void run() {
            try {
                Log.d(TAG, "Closing camera");
                cameraManager.stopPreview();
                cameraManager.close();
            } catch (Exception e) {
                Log.e(TAG, "Failed to close camera", e);
            }

            cameraClosed = true;

            readyHandler.sendEmptyMessage(R.id.zxing_camera_closed);

            cameraThread.decrementInstances();
        }
Changes the settings for Camera.

@param callback {@link CameraParametersCallback}
zxing-android-embedded/src/com/journeyapps/barcodescanner/camera/CameraInstance.java