Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop BarcodeDetector

How do I stop the barcode Scanner after scan?

barcodeDetector

    barcodeDetector = new BarcodeDetector.Builder(this)
            .setBarcodeFormats(Barcode.QR_CODE)
            .build();
        }
like image 987
Kopi Bryant Avatar asked Oct 24 '25 16:10

Kopi Bryant


1 Answers

You need to release BarcodeDetector after scanning complete. As

barcodeDetector.release();
like image 115
ADM Avatar answered Oct 26 '25 06:10

ADM



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!