@Override
    public void onTorchOn() {
        switchFlashlightButton.setText(R.string.turn_off_flashlight);
    }
Check if the device's camera has a Flashlight.
@return true if there is Flashlight, otherwise false.
sample/src/main/java/example/zxing/CustomScannerActivity.java