private void initialize() {
        decoderFactory = new DefaultDecoderFactory();
        resultHandler = new Handler(resultCallback);
    }
A view for scanning barcodes.

Two methods MUST be called to manage the state:
1. resume() - initialize the camera and start the preview. Call from the Activity's onResume().
2. pause() - stop the preview and release any resources. Call from the Activity's onPause().

Start decoding with decodeSingle() or decodeContinuous(). Stop decoding with stopDecoding().

@see CameraPreview for more details on the preview lifecycle.
zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeView.java