I hope to use NFC cards(UID)
to identify the employees using android app. And I have to assign this UID
over 10'000 employees. Therefore I need to make sure the possibility of the duplication over this concept. I have captured the UID
as below.
if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) {
Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
if(tag == null){
textViewInfo.setText("tag == null");
}else{
byte[] uid=tag.getId();
String finalUID= Base64.encodeToString(uid,1);
}
}
"finalUID" have send & saved in the mysql table. Thank you!