Modify strange problem zxing continuous scan bar codes and two-dimensional codes

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

http://anforen.com/wp/2016/05/modify_the_zxing_continuous_scanning_bar_codes_and_qr_code_of_strange_questions/

Guess you like

Origin blog.csdn.net/metababy/article/details/51393461