Book Image

Near Field Communication with Android Cookbook

By : Vitor Subtil
Book Image

Near Field Communication with Android Cookbook

By: Vitor Subtil

Overview of this book

Table of Contents (17 chapters)
Near Field Communication with Android Cookbook
About the Author
About the Reviewers

Joking with a friend

A little healthy joke is always welcome and NFC can help you with that.

Getting ready

Make sure you have some imagination and your friend isn't going to be upset with a small joke.

How to do it…

We will simply write a troll-video URL into the tag by performing the following steps:

  1. Open the application from the Visiting our website recipe in Chapter 4, Writing Tag Content – Real-life Examples, or any other application that allows us to write a URL to a tag.

  2. Get a URL of a trolling video or image. I especially like the 10 Hour Video - Troll Song.

  3. Write the desired URL to the tag.

  4. Find your victim and make an excuse or set a trap for them to tap on the tag.

How it works…

When we tap on a URL-formatted tag, Android will automatically open the browser without asking or prompting the user. This is the default behavior and allows us to rapidly navigate to a URL. In this recipe, we are taking advantage of the default behavior to troll our friends. Hope you have fun!