2012-09-04 94 views
0

我正在写一个URL到某个NFC标签以进行意图过滤主机名 - 如果安装了应用程序,请启动该应用程序,或者在未安装该应用程序的情况下提供一个链接到google-play。不幸的是只有浏览器出现:通过NFC上的URL启动Android应用程序标签

<intent-filter> 
<action android:name="android.intent.action.VIEW"></action> 
<category android:name="android.intent.category.DEFAULT"></category> 
<category android:name="android.intent.category.BROWSABLE"></category> 
<data android:host="example.com" android:scheme="http" /> 
</intent-filter> 

回答

2

的行动必须是不同的:

<intent-filter> 
    <action android:name="android.nfc.action.NDEF_DISCOVERED"></action> 
    <category android:name="android.intent.category.DEFAULT"></category> 
    <data android:host="example.com" android:scheme="http" /> 
</intent-filter> 

仍然没有所需的权限

相关问题