gpt4 book ai didi

android - Zxing读取条码后退出

转载 作者:搜寻专家 更新时间:2023-11-01 09:01:39 29 4
gpt4 key购买 nike

我在我的应用程序中包含了来自源代码的 Zxing 条形码阅读器。一切正常,除了条形码阅读器在成功读取条形码后退出。它不会抛出任何错误,我的应用程序 onActivityResult 甚至都没有被调用。

我如何称呼 Zxing:

Intent intent = new Intent("com.aeon.android2chrome.android.SCAN");
Intent.putExtra("com.google.zxing.client.android.SCAN.SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(intent, 0);

注意:我正在使用 com.aeon.android2chrome(我的包),这样如果已经安装了 zxing,手机就不会询问使用哪个条码阅读器打开。我已在 Zxing list 中对其进行适当更改。

我在日志中也得到了一个奇怪的错误

02-04 20:29:46.710: W/IInputConnectionWrapper(29716): showStatusIcon on inactive InputConnection

没有其他错误。有人可以给我几点错误或可能错误的地方吗?

最佳答案

摸索了很久,终于找到了问题所在。问题是我的 Activity list 中有标签 android:noHistory="true" 。删除它解决了问题

关于android - Zxing读取条码后退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14689508/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com