smart card in java|microsoft java card r2 = NdefRecord.createApplicationRecord (context.packageName) Now, that we have the foreground dispatch setup and the NDEF message prepared, we are ready to write the message on the NFC tag. Listen to NFC . Subscribe