While developing other recipes, we have seen different ways of storing our data in an NFC tag. From a simple plain text to a raw object, it all depends on the data we need to store. In this recipe, we will learn about some other formats to store our data.
We will create several
NdefMessages that contain a product representation in several formats by performing the following steps:
NfcBookCh10Example2and a package named
google-gsonlibrary from https://code.google.com/p/google-gson/ and import the
.jarfile to the
libsfolder in the project.