全部,
当点击特定 NFC 时,是否可以仅使用代码启动应用程序?
我看到了一些 Andriodmanifest.xml 的变化,但到目前为止还不是运气。
以下是我在 list 中所做的更改。
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:host="example.com" android:scheme="http" />
</intent-filter>
NFC 标签存储 example.com 的位置。
提前感谢您的帮助。
问候,
阿米特
最佳答案
感谢 NFC 专家。我想出了办法。 在这里
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<data android:scheme="http"
android:host="www.example.com"
android:path="" />
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
关于android - 在 NFC Tap 上启动 Rhomobile 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12835870/