I dont think there is such a thing.
You will have to write intermediate receiver for
android.nfc.action.TAG_DISCOVERED

Then separate ndef messages like i said before and generate separate intents
which ever is needed.

Regards,
Ajith



On Tue, Jan 18, 2011 at 12:54 PM, andrew <[email protected]>wrote:

> I think he only wants his activity started by the NFC intent, if the
> tag has a specific type of indefinite message.
>
> I.e. he wants to be able to specify an intent filter for his activity
> by indefinite message type and not be started on all tag discoveries.
>
> On Jan 18, 4:19 am, Ajith Kamath <[email protected]> wrote:
> > Hi Dominik
> >
> > The EXTRA_NDEF_MESSAGES<
> http://developer.android.com/reference/android/nfc/NfcAdapter.html#EX...>
> > 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#TN...>
> > and
> > then check for uri
> >
> > I hope this answers your question
> >
> > Regards,
> > Ajith
> >
> >
> >
> > On Tue, Jan 18, 2011 at 6:07 AM, Dominik <[email protected]> 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
> [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<android-developers%[email protected]><android-developers%2Bunsubs
> [email protected]>
> > > 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to