如何传递意图要求用户选择任何应用程序来扫描二维码?

发布于 2024-12-07 16:44:22 字数 205 浏览 1 评论 0原文

我正在制作一个 Android 应用程序,需要扫描二维码,然后将文本解析为结果。我想将意图传递给其他应用程序,例如谷歌护目镜或条形码扫描仪,它们可以有效地完成工作,并根据意图取回扫描的文本。

我已经阅读了其他相同的问题,发现我也可以使用 Zxing 库来完成此操作,但我希望此功能由其他预安装的应用程序来处理。

那么有人可以帮助我解决在这种情况下传递意图的方式吗?

I am making a android app which requires QR code scanning and then parsing the text as a resul. I would like to pass intent to other apllications like google goggles or Barcode scanner which can do the job efficiently and take the scanned text back as result of the intent.

I have read the other questions out there for the same and found that i can do it with Zxing library also, but i would like this functionality to be handled by other pre-installed app.

So could someone help me with the way we will pass intent in this case.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文