Android Question NFC tag how to read the UID

davemorris

Active Member
Licensed User
Longtime User
Hi, Guys
Just started a project to handle NFC tags - found Erel's tutorial on read/write NFC tags


And it works great for the tags I am using, should be easy to adapt it to fit into my project.

However, I need to also read the tag's UID along with a small amount of tag data (the UID code is used as an encryption key to ensure the tag has not been tampered with or duplicated).


Question is: Is there a simple way to adapt Erel's code to read the UID along with some data from the tag?


I did find another post


but is did not give an detailed example on how to do it (I assume it was posted by someone who knows a lot more about using NFC technologies than me!)

Once again, grateful for any help

Dave Morris
 

drgottjr

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

davemorris

Active Member
Licensed User
Longtime User
Hi drgottjr

Thanks for the input, to be honest I only got as far with this post when the example worked. I do feel a bit of a idiot not reading posting below.

I will have a go at the suggestions in the posting, very sorry to post a question when the answer was a few posts lower down.

Thanks again for your help.
Dave
 
Upvote 0
Top