Book Image

Near Field Communication with Android Cookbook

By : Subtil
Book Image

Near Field Communication with Android Cookbook

By: Subtil

Overview of this book

An easy-to-follow guide, full of hands-on examples of and real-world applications. Each recipe is explained and placed in context. If you want to learn how to create NFC-enabled Android applications, this is the book for you. Perhaps you already know a bit about Android application developments but have never used NFC, or perhaps you know a little about NFC android development but want some more advanced features and examples. In either case, this book will get you up and running quickly. You are expected to have Android programming knowledge.
Table of Contents (12 chapters)
11
Index

Making a phone call with one tap – Part 2


In Part 1 of this recipe, we were able to write a phone number to a tag but weren't able to read from the tag. Although the Android system knows how to handle the tel:* URI, we may want to prevent the default behavior and handle the tag content ourselves. In this recipe, we will complete the application and create a fully functional application ready for daily use.

Getting ready

  • Make sure you have a working Android development environment. If you don't, ADT Bundle is a good kit to start with. It is available at 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 also that you are familiarized reading Uri formatted NDEF Records. Refer to the Reading a URI-formatted record recipe in Chapter 5, Reading Tag Content.

  • Please have a look at...