Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR Code scanner is not Retrieval #57

Open
novinestore opened this issue Dec 4, 2018 · 2 comments
Open

QR Code scanner is not Retrieval #57

novinestore opened this issue Dec 4, 2018 · 2 comments

Comments

@novinestore
Copy link

Hello, Thanks for your great work!
barcodeCapture open camera and preview camera but not work retrieval on samsung device (J7 pro), but work on huawei or samsung j7!

code:
`barcodeCapture.setShowDrawRect(true);
barcodeCapture.setAllowEnterTransitionOverlap(true);
barcodeCapture.setShowDrawRect(true);
barcodeCapture.setSupportMultipleScan(false);
barcodeCapture.setTouchAsCallback(false);
barcodeCapture.shouldAutoFocus(true);
barcodeCapture.setBarcodeFormat(Barcode.ALL_FORMATS);
barcodeCapture.setCameraFacing(CameraSource.CAMERA_FACING_BACK);

    barcodeCapture.setRetrieval(new BarcodeRetriever() {
                @Override
                public void onRetrieved(Barcode barcode) {
                     _barcode_value = barcode.displayValue;
                    _func_send_barcode();
                }

                @Override
                public void onRetrievedMultiple(Barcode closetToClick, List<BarcodeGraphic> barcode) {
                    _barcode_value = barcode.get(0).getBarcode().displayValue;
                    _func_send_barcode();
                }

                @Override
                public void onBitmapScanned(SparseArray<Barcode> sparseArray) {

                }

                @Override
                public void onRetrievedFailed(String reason) {
                }

                @Override
                public void onPermissionRequestDenied() {

                }
            });

    barcodeCapture.refresh();`
@novinestore
Copy link
Author

xml:
<fragment android:id="@+id/barcode" android:name="com.google.android.gms.samples.vision.barcodereader.BarcodeCapture" android:layout_width="fill_parent" android:layout_height="fill_parent" app:gvb_auto_focus="true" app:gvb_code_format="all_format" app:gvb_draw="true" app:gvb_multiple="false" app:gvb_touch="false" app:gvb_rect_colors="@array/rect_color" />

@Rogdan
Copy link

Rogdan commented Dec 18, 2018

I have same problem. Meizu Pro 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants