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

Camera Preview Size Hardcoded #10

Description

@copperstick6

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();     
    } 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions