Thank you so much Dominik. so that I need also define the intent filter of my activity: <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED" /> <data android:mimeType="text/x-yourcompany" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter>
right? 2011/6/29 Dominik <dominik.gru...@fhnw.ch> > 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+unsubscr...@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