Until now, we probably used and reused the same tags to write different content types during the implementation of recipes. There is absolutely no problem with that while we are in the development stage since we need to constantly test what we are doing. In real-life usage, we may need/want to prevent tag rewrites to prevent malicious users from changing the tag content.
We will make some changes in the
NfcHelper class and allow the user to choose whether or not to make the tag read-only:
NfcBookCh10Example3and the package named
AndroidManifest.xmlfile is configured correctly. Refer to the Requesting NFC permissions recipe ...