I am using NXP NDEF tag and NFC Tag writer app given by NXP but in sony phone app show memory 524 byte but in MOTO mobile show as 52 byte memory. I am finding solution more than time but not resolved it. Please help me find out it.
I use the following code to read memory:
Ndef ndef = Ndef.get(tag);
int maxlength=ndef.getMaxSize();
For writing data I use
Ndef ndef = Ndef.get(tag);
NdefRecord mimeRecord = NdefRecord.createMime("text/plain", byteArray);
NdefMessage message = new NdefMessage(mimeRecord);
ndef.writeNdefMessage(message);