public void changeMaskColor(View view) {
        Random rnd = new Random();
        int color = Color.argb(100, rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256));
        viewfinderView.setMaskColor(color);
    }
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