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 has been 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();
}
The text was updated successfully, but these errors were encountered:
Thanks Thomas! I'm pinging Lucy about the sizes of the devices that we're planning to use at this year's event so that we can build around that. Changing this from bug to enhancement since it's not causing immediate issues when I create a build with a device with those dimensions.
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.
The text was updated successfully, but these errors were encountered: