主要引起是因為在

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");
 }

最新文章

  1. python 字符串 转 dict
  2. MongoBD解决没有自动增长ID 的问题
  3. Spring AOP (上)
  4. Sequence operation(线段树区间多种操作)
  5. .wsdl文件生成.cs文件
  6. How do I create an IIS application and application pool using InnoSetup script
  7. this.button1.Click += new System.EventHandler(this.button1_Click);
  8. 用js来实现页面的换肤功能(带cookie记忆)
  9. requests-所有异常归类
  10. Android开发之Path类使用详解,自绘各种各样的图形!
  11. KBEngine 编译出现 MSB802 无法找到v140的生成工具
  12. linux 查看硬件信息
  13. Windows(x64)编译FFMPEG-2.0.1
  14. [转]what’s the difference between @Component ,@Repository & @Service annotations in Spring
  15. halcon程序输出成c++程序
  16. CLion 终于支持 jump outside closing bracket/quote with Tab 了!
  17. iOS UIFont 的学习与使用
  18. UVA10154 Weights and Measures
  19. mongo: 改
  20. python之int (整型)

热门文章

  1. Dom对象和JQuery对象的详细介绍及其区别
  2. lightoj 1179(线段树)
  3. hdu 3221 Brute-force Algorithm(高速幂取模,矩阵高速幂求fib)
  4. 分享毕业学生“ERP实施project联赛”总结,是肺腑之言——知识是人的价值的体现,每门课程是有意义的学校纪律
  5. Selenium 2.0 WebDriver 自动化测试 使用教程 实例教程 API快速参考
  6. 浏览器url传参中文时得到null的解决方法
  7. 【 D3.js 入门系列 --- 8 】 对话操作(事件)
  8. iOS App 性能优化总结
  9. 【转向Javascript系列】深入理解Web Worker
  10. java使用AES加密解密 AES-128-ECB加密