O'Reilly logo

Near Field Communication with Android Cookbook by Vitor Subtil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating multi-action tags

In this recipe, we will create a basic application that allows us to take advantage of the NdefMessage structure to write multiple actions to a tag.

Getting ready

You will need the following prerequisites while creating multi-action tags:

  • Make sure you have a working Android development environment. If you don't, ADT Bundle is a good kit to start with (http://developer.android.com/sdk/index.html).
  • Make sure you have an NFC-enabled Android device or a virtual test environment. Refer to the Testing your app all together recipe in Chapter 1, Getting Started with NFC.
  • It will be assumed that Eclipse is the development IDE and that you are familiar with writing external type NdefRecord. Refer to the Working with external types ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required