真正可用的源码
https://download.csdn.net/download/bringbcd/9652881
这个一点扫描activity就挂了,但是有文章说明参考一下
https://blog.csdn.net/advance_djj/article/details/78989139
几个相关原理文章:
二维码框架Zxing的使用及自定义
https://blog.csdn.net/asjqkkkk/article/details/80739613
Android开发之SurfaceView详解
http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2012/1201/656.html
Surface、SurfaceView、SurfaceHolder及SurfaceHolder.Callback之间的关系
https://www.cnblogs.com/lcchuguo/p/3992482.html
Android中Handler使用浅析
https://www.cnblogs.com/panhouye/archive/2017/03/03/6494753.html