[英]How can I make ZXing Barcode Scanner compatible with 2.2 and above Android
I want ZXing Barcode Scanner compatible with android 2.2 and above. 我希望ZXing条码扫描仪与android 2.2及更高版本兼容。
What I did - I used Zing 2.3.0 in my application and its perfectly working in 4.0 and above 我所做的-我在应用程序中使用了Zing 2.3.0,并且在4.0及更高版本中均可完美运行
but when I run in android 2.2 and I click the button to start scanner the application got crashed. 但是当我在android 2.2中运行时,我单击按钮启动扫描仪,导致应用程序崩溃。
What extra I need to implement ?? 我还需要实现什么?
Note: I have added CaptureActivity project
from zxing as a library in my project and CaptureActivity and MyProject in both the menifest file minsdk is 8 and targeted is 17 注意:我已经将zxing中的
CaptureActivity project
添加为CaptureActivity project
中的库,并且清单文件minsdk中的CaptureActivity和MyProject均为8,目标为17
The code has not been written for Android 2.2 compatibility in a long time. 长期以来,该代码尚未为实现Android 2.2兼容性而编写。 You can go back further to find such a version.
您可以进一步返回以找到这样的版本。 But I would encourage you to write your own app and just reuse the core library instead.
但我鼓励您编写自己的应用程序,而只是重用核心库。 Also there are very few Android 2.2 devices anymore, less than 1%.
另外,现在很少有Android 2.2设备,不到1%。 It is not really worth supporting.
这确实不值得支持。
Late answer sorry, but zxing-android-minimal was available when you asked your question! 延迟回答很抱歉,但是当您提出问题时, zxing-android-minimal可用!
It's a port of (the great) zxing but supports Android 7+. 这是(很棒的)zxing的移植版本,但支持Android 7+。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.