小编And*_* H.的帖子

ZXing条码扫描仪意图:设置DecodeHintType.ASSUME_GS1

在我的应用程序中,我想扫描 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);
Run Code Online (Sandbox Code Playgroud)

谢谢你的帮助。我几乎搜索了整个网络,但没有找到这个问题的答案。这让我发疯......

android barcode zxing android-intent gs1-128

4
推荐指数
1
解决办法
3498
查看次数

标签 统计

android ×1

android-intent ×1

barcode ×1

gs1-128 ×1

zxing ×1