QR $ C $下启动一个本地应用程序 [英] QR Code for launching a native application

查看:136
本文介绍了QR $ C $下启动一个本地应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2的问题有关在Android设备上使用QR code: 1.是否有可能推出从QR code原生Android应用程序?也许有些配置URI模式? 2.这可能是对我有用的另一种选择是里面有我自己的应用程序中的QR code扫描仪。才有可能我以某种方式包括不同​​的应用程序,它可以扫描QR codeS在我的应用程序吗?或将我要实现扫描自己?

2 questions about using a QR code in an Android device: 1. Is it possible to launch a native Android application from a QR code? Maybe by some configured URI schema? 2. Another option which might be useful for me is to have a QR code scanner inside my own app. Will it be possible for me to somehow include a different app that scans QR codes inside my app? Or will I have to implement the scanning myself?

感谢

推荐答案

要扫描吧codeS在Android中通过的意图,看到的 https://github.com/zxing/zxing/wiki/Scanning-Via-Intent

To scan barcodes in Android by Intent, see https://github.com/zxing/zxing/wiki/Scanning-Via-Intent

要从QR code触发一个应用程序,是的,你需要注册应用程序来处理特定的自定义URL方案。这是怎么了相同的应用程序可以在网络上响应点击:的https:/ /github.com/zxing/zxing/wiki/Scanning-From-Web-Pages

To trigger an app from a QR code, yes, you need to register the app to handle the particular custom URL scheme. This is how the same app can respond to clicks on the web: https://github.com/zxing/zxing/wiki/Scanning-From-Web-Pages

看看它是如何注册到这里处理的URL: https://开头github.com/zxing/zxing/blob/master/android/AndroidManifest.xml

Look at how it registers to handle URLs here: https://github.com/zxing/zxing/blob/master/android/AndroidManifest.xml

这篇关于QR $ C $下启动一个本地应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆