Código:
¿Alguien puede ayudarme? int result = scanner.scanImage(barcode); String txt = "hola"; if (result != 0){ previewing = false; mCamera.setPreviewCallback(null); mCamera.stopPreview(); SymbolSet syms = scanner.getResults(); for (Symbol sym : syms) { if(sym.getData() == txt){ Toast.makeText(getBaseContext(), "Oferta encontrada->" + sym.getData(), Toast.LENGTH_SHORT) .show(); barcodeScanned = true; }else{ Toast.makeText(getBaseContext(), "Oferta no encontrada ->" + sym.getData(), Toast.LENGTH_SHORT) .show(); } } }