You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2018. It is now read-only.
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();
}