public void setStatusText(String text) {
        // statusView is optional when using a custom layout
        if (statusView != null) {
            statusView.setText(text);
        }
    }
Convenience method to initialize camera id, decode formats and prompt message from an intent.

@param intent the intent, as generated by IntentIntegrator
zxing-android-embedded/src/com/journeyapps/barcodescanner/DecoratedBarcodeView.java