io2015-codelabs icon indicating copy to clipboard operation
io2015-codelabs copied to clipboard

Barcode detector minor issue

Open klaus78 opened this issue 8 years ago • 0 comments

in this code txtView is not defined yet (Will be defined in the next piece of code but should be defined here)

BarcodeDetector detector = 
    new BarcodeDetector.Builder(getApplicationContext())
                        .setBarcodeFormats(Barcode.DATA_MATRIX | Barcode.QR_CODE)
                        .build();
if(!detector.isOperational()){
   txtView.setText("Could not set up the detector!");
   return;
}

klaus78 avatar Jan 20 '17 13:01 klaus78