class BarcodeScanActivity extends Activity implements Detector.Processor<Barcode> {

    public void closeBarcodeActivity(SparseArray<Barcode> sparseArray) {
        Intent intent = new Intent();
        if (sparseArray != null) {
            intent.putExtra(AllConstants.BARCODE.BARCODE_KEY, sparseArray.valueAt(0));
        }
        setResult(RESULT_OK, intent);
        finish();

    }

}