This repository was archived by the owner on May 4, 2018. It is now read-only.

Description
In Line 211 of Main Activity.js, there's a hardcoded value for setting the camera size. We think this is causing a lot of crashes with devices which do not support said resolution. A recommended solution is to grab the device's size and set that as the size of the preview size. This would remove the error.
mCameraSource = new CameraSource.Builder(this, barcodeDetector)
.setFacing(CameraSource.CAMERA_FACING_BACK)
.setRequestedPreviewSize(1600, 1024)
.build();
}