I am working on an Android project which relies on the unique UID of a discovered NFC tag to process the tag. I extract this UID using the following code:
byte[] extraID = intent.getByteArrayExtra(NfcAdapter.EXTRA_ID);
However, for some technologies this UID is randomly generated for security purposes. Does anybody have an idea how I could detect that this is a randomly generated UID? Is there some kind of flag that is set?
note: a simple solution would be to read the tag twice and compare the UIDs. However, I would like to avoid this.