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

Turning other adapters on/off

In this recipe, we will create a basic application that writes enable/disable actions to a tag and enables/disables the chosen adapter when the tag is detected.

Getting ready

In order to create a basic application that will turn the adapters on/off, make sure that you take care of the following elements:

  • Make sure you have a working Android development environment. If you don't, ADT Bundle is a good start. It is available at http://developer.android.com/sdk/index.html.
  • Also, you should 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.
  • We assume that Eclipse is your development IDE and that you are familiar with writing ...

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