Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. http://ant73.com https://blog.csdn.net/metababy/article/details/51393461
Originally, very simple thing, will handleDecode method CaptureActivity.java in the code at the end of the plus
SurfaceView surfaceView = (SurfaceView)findViewById(R.id.preview_view);;
SurfaceHolder surfaceHolder = surfaceView.getHolder();
initCamera(surfaceHolder);
if (handler != null)
handler.restartPreviewAndDecode();
It can be. But it has no effect, add breakpoints, do not perform these words.
Later solved
I detailed records on a personal blog