java.lang.RuntimeException: Method called after release()
2024-10-19 04:30:27
主要引起是因為在
camera.stopPreview();
camera.release();
前沒有將setPreviewCallback 設置為null,
解決情況:
public void surfaceDestroyed(SurfaceHolder holder) {
camera.setPreviewCallback(null) ;
camera.stopPreview();
camera.release();
camera = null;
Log.e("CameraPreview", "sufaceDestroyed---------camera release");
}
最新文章
- python 字符串 转 dict
- MongoBD解决没有自动增长ID 的问题
- Spring AOP (上)
- Sequence operation(线段树区间多种操作)
- .wsdl文件生成.cs文件
- How do I create an IIS application and application pool using InnoSetup script
- this.button1.Click += new System.EventHandler(this.button1_Click);
- 用js来实现页面的换肤功能(带cookie记忆)
- requests-所有异常归类
- Android开发之Path类使用详解,自绘各种各样的图形!
- KBEngine 编译出现 MSB802 无法找到v140的生成工具
- linux 查看硬件信息
- Windows(x64)编译FFMPEG-2.0.1
- [转]what’s the difference between @Component ,@Repository &; @Service annotations in Spring
- halcon程序输出成c++程序
- CLion 终于支持 jump outside closing bracket/quote with Tab 了!
- iOS UIFont 的学习与使用
- UVA10154 Weights and Measures
- mongo: 改
- python之int (整型)
热门文章
- Dom对象和JQuery对象的详细介绍及其区别
- lightoj 1179(线段树)
- hdu 3221 Brute-force Algorithm(高速幂取模,矩阵高速幂求fib)
- 分享毕业学生“ERP实施project联赛”总结,是肺腑之言——知识是人的价值的体现,每门课程是有意义的学校纪律
- Selenium 2.0 WebDriver 自动化测试 使用教程 实例教程 API快速参考
- 浏览器url传参中文时得到null的解决方法
- 【 D3.js 入门系列 --- 8 】 对话操作(事件)
- iOS App 性能优化总结
- 【转向Javascript系列】深入理解Web Worker
- java使用AES加密解密 AES-128-ECB加密