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

Visiting our website

NFC tags come in a variety of sizes and formats. One of these formats is the business card. Imagine how cool it would be for people to open your company website with just a tap! Besides having a very unique business card, you will get people directed to the website very quickly. Through this application, we will be able to store a website's URL in a tag easily.

How to do it…

In this first part of the development of this application, we will allow the user to write a URL in the application and save it in a tag. User can also go to the web browser and share a link to the application, avoiding the need to write it themselves. This can be done with the following steps:

  1. Open Eclipse and create a new Android application project named ...

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