zxing酒吧code的Android相机时遇到应用程序打开 [英] zxing barcode Android camera encountered when application open
问题描述
我有一个Android应用程序通过启动斑马线条code扫描仪
Intent.My问题有时我得到的抱歉,Android相机遇到问题,你可能需要重启设备。
I have an Android app that launches the zxing barcode scanner through an Intent.My problem sometime I get "Sorry, the Android camera encountered a problem. You may need to restart the device".
推荐答案
这意味着()从Camera.open返回null设备,它不应该永远做。它视为设备缺陷。
This means the device returned null from Camera.open() and it shouldn't ever do that. It's treated as a device bug.
我一直只在Android 2.2设备,事件,他的设备,有一个前置摄像头收到此错误。访问一个前置摄像头的API只出现在了Android 2.3和previous Camera.open()API方法只能返回一个后置摄像头。因此,这些返回null。它是一个设备错误,真的,因为他们确实需要运行Android 2.3让应用程序使用了前置摄像头。
I consistently getting this error only on Android 2.2 devices, event he device that have a front camera. The API for accessing a front camera only appeared in Android 2.3, and the previous Camera.open() API method may only return a rear-facing camera. So these return null. And it is a device bug, really, since they really need to be running Android 2.3 to let apps use a front camera.
不要测试您的应用前端和后端摄像头。并检查您多次收到错误的设备。 PL接受你的答案是正确的。
Do test your app both front and back end camera. and check in which device you getting error repeatedly . Pl accept your answer is correct.
这篇关于zxing酒吧code的Android相机时遇到应用程序打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!