Kopi Bryant
Kopi Bryant

Reputation: 1364

How to stop BarcodeDetector

How do I stop the barcode Scanner after scan?

barcodeDetector

    barcodeDetector = new BarcodeDetector.Builder(this)
            .setBarcodeFormats(Barcode.QR_CODE)
            .build();
        }

Upvotes: 4

Views: 2450

Answers (1)

SpiritCrusher
SpiritCrusher

Reputation: 21053

You need to release BarcodeDetector after scanning complete. As

barcodeDetector.release();

Upvotes: 6

Related Questions