【发布时间】:2016-11-06 21:18:59
【问题描述】:
在我的应用程序中,我想扫描 GS1-128 条码,并且需要从 ZXing 条码扫描器传递的 FNC1 字符。 现在我只收到没有 FNC1 字符的纯文本。
有没有办法通过 Intent 将 DecodeHintType.ASSUME_GS1 传递给扫描仪应用程序?
我不想在我的应用中包含完整的扫描仪源代码,而是使用 Intent。
在扫描仪的源代码中,我可以看到需要设置 DecodeHintType 以实现: https://code.google.com/p/zxing/source/browse/trunk/core/src/main/java/com/google/zxing/oned/Code128Reader.java
boolean convertFNC1 = hints != null && hints.containsKey(DecodeHintType.ASSUME_GS1);
感谢您的帮助。 我几乎搜索了整个网络,但没有找到答案。 这让我发疯了......
【问题讨论】:
标签: android android-intent barcode zxing barcode-scanner