
Google organized a kind of scavenger hunt for the developers conference IO 2013 to demonstrate the practical use of NFC. Participants needed an NFC-enabled Android and then installed an app called “NFC Hunt”. The app gives clues where to find specific NFC tags in the real world. The user has to find and scan these tags, and then the app give clues for the next station.
Google has published the source code of NFC Hunt app. So we developers have a fine example of a complete NFC application. But when I tried to understand the source code I noticed gaps in the documentation. Just the interesting parts are not explicitly explained: how can I make my app listen to NFC tags and how do I respond to the detected tags. Here now is the result of my research: