0

I know How to get Nfc Unique ID, When NFC Reader,

private Tag tag;

//Read success.
protected void onNewIntent(Intent intent) {
   super.onNewIntent(intent);

   tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);

   byte[] id = tag.getId();

}

but I want Even if I do not read the NFC card.

How to get NFC id, without reading nfc on android?

thanks.

hyunwookcho
  • 147
  • 1
  • 3
  • 16

1 Answers1

1

Mobile phones acting as a tag (card emulation) do have a random UID (4 byte). It is not supported to adjust a specific UID.

As result every time the external field is turned off and on again the mobile phone as a different UID.

Best regards,

Alex
  • 26
  • 1