Reputation: 6295
Is it possible to have a custom mimeType for an NDEF_DISCOVERED?
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain" />
</intent-filter>
I'd like to have a custom mimeType, for example
<data android:mimeType="customType" />
Upvotes: 1
Views: 2186
Reputation: 1006674
Sure. In this sample project, I use:
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="application/vnd.commonsware.sample.webbeam"/>
</intent-filter>
Upvotes: 3