W Wolli013 Well-Known Member Licensed User Longtime User Jan 21, 2018 #1 Hi all, how can I make one Tag NFC only readably and according to demand again recordably? https://www.b4x.com/android/forum/threads/nfc-reading-and-writing.64451/
Hi all, how can I make one Tag NFC only readably and according to demand again recordably? https://www.b4x.com/android/forum/threads/nfc-reading-and-writing.64451/
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2018 #2 Try this code: B4X: Private Sub SetReadonly TagTech.RunAsync("ReadOnly", "makeReadOnly", Null, 0) Wait For ReadOnly_RunAsync (Flag As Int, Success As Boolean, Result As Object) Log("Readonly: " & Success) End Sub Call it after writing was completed. See makeReadOnly documentation: https://developer.android.com/reference/android/nfc/tech/Ndef.html#makeReadOnly() Upvote 0
Try this code: B4X: Private Sub SetReadonly TagTech.RunAsync("ReadOnly", "makeReadOnly", Null, 0) Wait For ReadOnly_RunAsync (Flag As Int, Success As Boolean, Result As Object) Log("Readonly: " & Success) End Sub Call it after writing was completed. See makeReadOnly documentation: https://developer.android.com/reference/android/nfc/tech/Ndef.html#makeReadOnly()
W Wolli013 Well-Known Member Licensed User Longtime User Jan 21, 2018 #3 Thank You, You are the best! Upvote 0