我正在创建一个应用程序来捕获 android 光束并启动我的应用程序而不是指定的应用程序。例如:发送一个网页,但我的应用程序启动了。
我尝试使用 NDEF Intent 过滤器设置 list ,但它似乎没有捕获光束并启动我的 Activity。
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
</intent-filter>
感谢任何帮助。谢谢!
最佳答案
在 Action 下面放置这个:
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http"
android:host="example.com"
android:pathPrefix="" />
更多信息:http://developer.android.com/guide/topics/connectivity/nfc/nfc.html#well-known-uri
关于Android 光束 Intent 过滤器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17799131/