1.首先android6.0以上版本要动态申请相机和文件读写权限 2.废话不啰嗦,上代码: /** * 摄像头画面采集界面 */ public class DistinguishActivity extends BaseActivity implements SurfaceHolder.Callback, Camera.PictureCallback { private ImageView iv_ivPhoto; private SurfaceView surfaceView; private SurfaceHolder surfaceHolder; pri