Hi Dominik The EXTRA_NDEF_MESSAGES<http://developer.android.com/reference/android/nfc/NfcAdapter.html#EXTRA_NDEF_MESSAGES> will be in that Intent which will contain all ndef messages of detected tag. So once you get that intent, get all records from that Ndef Message. Check the type (getTnf ) for TNF_EXTERNAL_TYPE<http://developer.android.com/reference/android/nfc/NdefRecord.html#TNF_EXTERNAL_TYPE> and then check for uri
I hope this answers your question Regards, Ajith On Tue, Jan 18, 2011 at 6:07 AM, Dominik <dominik.gru...@fhnw.ch> wrote: > Is it possible to restrict the type of tags an application is reacting > on? > > The intent filter used e.g. by the Tags application on the Nexus-S is > defined as > <intent-filter> > <action android:name="android.nfc.action.TAG_DISCOVERED"/> > <category android:name="android.intent.category.DEFAULT"/> > </intent-filter> > When a tag is detected, the user has to choose the application which > should handle the intent. > > I would like to react depending on the NDEF type of the record, e.g. > my application should be started if the NDEF record is of type > EXTERNAL and if the uri is "urn:nfc:ext:company.com:demo". > > Is such an extension of the intent filter possile? > If not, is it planned? > > Dominik > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en