Start Rhomobile app on NFC Tap

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 01:35:54

问题


All,

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

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>

Where NFC Tag has example.com stored.

Thanks for the Help in advance.

Regards ,

Amit


回答1:


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>


来源:https://stackoverflow.com/questions/12835870/start-rhomobile-app-on-nfc-tap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!