简体   繁体   English

Android ZXing条码扫描器无法与HTC Evo 4g Lte一起使用

[英]Android ZXing barcode scanner not working with HTC Evo 4g Lte

One of my users is having a problem using the barcode scanner on my app. 我的一位用户在我的应用程序上使用条形码扫描仪时遇到问题。 Basically, it won't scan, it never has. 基本上,它不会扫描,永远不会。

He is using my app on a HTC Evo 4g Lte. 他在HTC Evo 4g Lte上使用我的应用程序。

My app makes use of the ZXing integrated code and this is the first device that has had an issue scanning bacodes. 我的应用程序使用了ZXing集成代码,这是第一台扫描条形码时出现问题的设备。

The only information I have is that he is always scanning in bright light. 我唯一得到的信息是,他总是在明亮的光线下扫描。

I am trying to problem solve this issue remotely so don't have access to logcat output or the device itself. 我正在尝试远程解决此问题,因此无法访问logcat输出或设备本身。

I have seen from googling on other sites that people have mentioned issues with autofocus and blurry camera photos. 我在其他网站上搜索时发现,人们提到了自动对焦和相机照片模糊的问题。

I think this could be one issue where the problem lies. 我认为这可能是问题所在。

I have a number of questions: 我有几个问题:

1) What could be causing the issue? 1)是什么原因引起的? Phone camera, firmware? 手机摄像头,固件? 2) How should I proceed with the user issue? 2)我应该如何处理用户问题? How can I get them to zero in on the cause so that I can fix it at my desk? 我如何才能将其归零,以便在办公桌上进行修复? 3) Or has anyone come across this issue before and was able to resolve it? 3)还是以前有人遇到过这个问题并能够解决?

Thanks. 谢谢。 I will update my text here if I find other solutions. 如果找到其他解决方案,我将在这里更新我的文字。

Well firstly check if autofocus is not required on camera since not all of the devices are supporting it: 首先,请检查相机是否不需要自动对焦,因为并非所有设备都支持自动对焦:

<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />

Secondly since you are using integrated zxing within your app, you have to check if user already has installed original ZXing Barcode scanner and use that one through Intent and not the embedded one. 其次,由于您在应用程序中使用集成的zxing,因此必须检查用户是否已经安装了原始的ZXing条形码扫描仪,并通过Intent而不是嵌入式的使用了它。

Implement ACRA or some similar library which will send logs wherever you define it giving you access to it without having the device itself. 实现ACRA或类似的库,无论您定义它的位置如何,它都会发送日志,使您无需设备本身即可访问它。

If the app is on the Google Play and app crashes tell your user to tap on the Report in FC dialog which will show you the Stack trace in Google Play developer console. 如果该应用程序在Google Play上并且崩溃,请告诉您的用户点击“ FC中的报告”对话框,该对话框会在Google Play开发者控制台中向您显示堆栈跟踪。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM