Wednesday, June 29, 2011

[android-developers] Re: how to make my app as the only one NFC tag handler

simply define your own mime-type and write your private text in your
own format, i.e. as

new NdefRecord(
NdefRecord.TNF_MIME_MEDIA,
"text/x-yourcompany".getBytes(),
new byte[0],
payload);

and define an intent filter for exactly this mime type, then only your
application will react on your strings.
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment