With Android 2.3.3 the tag dispatching has been improved quite a bit.
See the docs at http://developer.android.com/reference/android/nfc/Tag.html
for details on how it works now.

We generally would like to see people deploying tags using NDEF data
on them since it's much easier to deal with for developers. For
example, we inspect the first NDEF record in the first NDEF message
and build an Intent based on the content. If it's a URL we fill in the
data field on the NDEF_DISCOVERED intent, and if it's MIME data we
fill in the type field on that Intent. This lets developers filter for
tags that contain only data they're interested in.

Also, NDEF can be stored on many types of tags so you don't have to
worry about custom tag protocols when writing apps.

-Jeff

On Feb 8, 12:51 am, andrew <[email protected]> wrote:
> TopTunniste for tags for example
>
> On Feb 7, 10:09 pm, Mark Murphy <[email protected]> wrote:
>
> > Have you examined an Intent sent out when anNFCtag is encountered?
> > Perhaps the path is part of the Intent and can be filtered upon with
> > the <data> element in your <intent-filter>.
>
> > Touchatag is sold out of their kits -- anyone know where else to get
> > someNFCtags?
>
> > On Mon, Feb 7, 2011 at 4:03 PM, Mark Wyszomierski <[email protected]> wrote:
> > > Hi,
>
> > > If I declare my application to be able to readNFCtags using the
> > > following:
>
> > >  <activity
> > >      android:name=".activities.ActivityFoo" >
> > >      <intent-filter>
> > >        <action android:name="android.nfc.action.TAG_DISCOVERED"/>
> > >      </intent-filter>
> > >  </activity>
>
> > > and the user chooses my app as the default for further reads, we're
> > > essentially wiping out the chance for any other app in the system to
> > > handle tag reading?
>
> > > Just wondering how we'll balance this. My tags actually point to
> > > specific urls, like:
>
> > >  foo.com/a
> > >  foo.com/b
>
> > > So what would be more ideal is to let the OS give the user a chance to
> > > set a default for a tag read action + a specific url domain pattern
> > > for example. That seems more fine-grained and appropriate here?
>
> > > Just wondering what others think on this,
>
> > > Thanks
>
> > > --
> > > 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
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> > Available!

-- 
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