( RFID- NDEF)
NdefFormatable format = NdefFormatable.Get(tag);
if (format != null) {
try {
format.Connect();
format.Format(message);
return true;
}
catch (IOException e) {
return false;
}
}
else {
return false;
}
This is in Monodroid, but I think the concept in Java is the same.
source
share