当前位置:网站首页>Crash problem

Crash problem

2022-06-10 05:42:00 A rookie on the avenue

java.lang.RuntimeException: Camera is being used after Camera.release() was called

preview callback Time problem , Refer to the following :

mCamera.setPreviewCallback(null) ;
mCamera.stopPreview();
mPreviewRunning = false;
mCamera.release();

stay stopPreview and release Before calling setPreviewCallback(null)  That's it

At the end of the call closecamera, To give setPreviewCallback Clear it out

You can refer to :

https://blog.csdn.net/pbm863521/article/details/75111379

原网站

版权声明
本文为[A rookie on the avenue]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206091000135608.html