2012-08-09 71 views
0

我用了斑马线库来开发条形码扫描application.When我用我的Atrix2和HTC EVO 3D测试application.It作品后无法找到相机,但它没有工作与阿尔卡特ot986.It只是没有回应与我打开默认摄像头应用黑色screen.After,它表明,手机找不到camera.After重新启动手机,相机确定。相机错误:使用条形码扫描应用

回答

1

你释放相机,当你用它完成?

Important: Call release() to release the camera for use by other applications. Applications should release the camera immediately in onPause() (and re-open() it in onResume()).

http://developer.android.com/reference/android/hardware/Camera.html

+0

更多的精神食粮...... 注:采用Android 4.0(API等级14),该Camera.lock()和Camera.unlock开始()调用为你自动管理。 [这里找到](http://developer.android.com/guide/topics/media/camera.html) 可以解释为什么它的工作在手机上运行旧操作系统版本 – ChrisHarris2012 2012-08-09 14:26:30