Вопрос

The DOC of google android said the :payload byte array, containing zero to (2 ** 32 - 1) bytes,must not be null. So I think a NDEF record can carry 4GB data.

But when I check the max size of Samsung‘s TecTiles with ndef.getMaxSize() the size is just 716.

Why the TecTiles from samsung is not 4GB?I think any NFC tag which supported NDEF can carry 4GB data at most.

Это было полезно?

Решение

The limiting factor on the size of NDEF messages is the capacity of the tag in most cases.

For example, it is possible in most operating systems to have a file that is 2GB in size. However, you cannot have a 2GB file on a 128MB drive, because the drive cannot hold 2GB. It does not matter that the OS limit is 2GB -- the drive physically cannot hold anything near that limit.

In this respect, you can think of an NFC tag as being a very very very very very small drive. The number of bytes supported by an NFC tag varies by tag, but frequently is 1KB or less.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top