android - 在 NFC Tap 上启动 Rhomobile 应用程序

标签 android nfc rhomobile

全部,

当点击特定 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/

相关文章:

在用户交互之前,Android WebView 无法完全呈现内容

javascript - 带有 Rhomobile 的 Google map Javascript V3 API

android - Google Play Store "Your Device isn' t 与此版本兼容”

android - 在 android 中加载网页失败时隐藏 "WebPage Not available"消息

ios - iOS 上的 Flutter NFC Manager 问题

javascript - Web NFC api 可以用于渐进式 Web 应用程序吗?

java - 一步一步...使用 NFC 读取标签

ruby - Rhomobile 使用 CSV 或 XML 从外部 Web 服务器插入本地数据库

testing - 我将如何以 BDD 风格在 Rhomobile 中测试 Controller ?

android - 如何清除应用更新时的用户数据?