public void setUseTextureView(boolean useTextureView) {
        this.useTextureView = useTextureView;
    }
Set to true to use TextureView instead of SurfaceView.

Will only have an effect on API >= 14.

@param useTextureView true to use TextureView.
zxing-android-embedded/src/com/journeyapps/barcodescanner/CameraPreview.java