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

Sending a predefined SMS – Part 1

In this recipe, we will see how to store an SMS and the recipient in a tag, which we will retrieve and handle later. You can find the 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 will allow the user to write a phone number and the SMS in the application and save them in a tag. Users can also go to the contact list and share a contact with the application, avoiding the need to write the number on their own. This can be done with the following steps:

  1. Open Eclipse and create a new Android application project named NfcBookCh4SMS and a package named nfcbook.ch4sms.
  2. Make sure the AndroidManifest.xml file is configured ...

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