开始在NFC点击Rhomobile的应用 [英] Start Rhomobile app on NFC Tap

查看:128
本文介绍了开始在NFC点击Rhomobile的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有,

只使用code是有什么办法可以启动应用程序时perticular NFC被窃听?

Using only code is there any way to Start the App when perticular NFC has been tapped?

我迄今所看到的一些Andriodma​​nifest.xml变化,但不是运气。

I have seen some Andriodmanifest.xml changes but not luck so far.

以下更改我已经在清单完成。

following changes i have done in manifest.

<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储存。

Where NFC Tag has example.com stored.

感谢您提前帮助。

问候,

阿米特

推荐答案

由于NFC盖伊。我想出的方式。

Thanks NFC Guy. I figured out the way. Here it is

           <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>

这篇关于开始在NFC点击Rhomobile的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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