Hallo Tarun,
> NdefRecord textRecord = new NdefRecord(NdefRecord.TNF_MIME_MEDIA,"text/
> x-vCard".getBytes(),new byte[] {}, textBytes);
Although MIME types are -- according to the RFC -- case-insensitive,
you should consider using only lower case letters, e.g. text/x-vcard.
> <intent-filter>
> <action android:name="android.nfc.action.NDEF_DISCOVERED" />
> <category android:name="android.intent.category.DEFAULT" />
> <data android:mimeType="text/x-Vcard" />
^^^^^^^^^^^^
Be careul that Android's MIME type intent filter is case-sensitive,
e.g. "text/x-Vcard" is no the same as "text/x-vCard" and is not the
same as "text/x-vcard".
br
Michael
--
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