Reading and writing to NFC
问题 I am writing an Android application to read and write to a tag. When I read everything's works fine, when i try to save data on the nfc tag, tag first read data and opens again activity, how to block reading from intent and save correctly data? I have an activity that runs 4 fragments, the reading code is in the activity and the mechanism of writing is called from fragment 回答1: For writing I would not use the enableForegroundDispatch method, it misleads the user to move the card out of range