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

Leaving a (small) note – Part 1

In this recipe, we will see how to store a text block in a tag, which we will retrieve and handle later—Part 2 of this recipe in Chapter 6, Reading Tag Content – Real-life Examples.

How to do it…

In the first part of the development of this application, we are going to allow the user to write some text in the application and save it in a tag. The user can also go to any other application that supports content sharing and share some text with the application, avoiding the need to write the note on his/her own.

  1. Open Eclipse and create a new Android application project named NfcBookCh4Note and a package named nfcbook.ch4note.
  2. Make sure the AndroidManifest.xml file is configured correctly —refer to the Requesting NFC permissions ...

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