TagTech.Initialize("TagTech", "android.nfc.tech.NdefFormatable" , si) ==> error: java.lang.RuntimeException: Object should first be initialized (TagTechnology).
but NFC tools Can format it. then , How to clear all NdefRecord , format data area?
TagTech.Initialize("TagTech", "android.nfc.tech.NdefFormatable" , si) ==> error: java.lang.RuntimeException: Object should first be initialized (TagTechnology).
Thanks for Erel's replay.
I write a TNF_EMPTY record to overwrite , But the data is still there , and the datasize is 4 bytes
some nfc tools "ndef data area format" makes data to 0x00
B4X:
Dim AA As JavaObject
Dim b = 0 As Short
AA = AA.InitializeNewInstance("android.nfc.NdefRecord", Array(b,Null,Null,Null))
......
or I can make a big (< getMaxSize ) "createTextRecord " to overwrite it.