O'Reilly logo

Xamarin Studio for Android Programming: A C# Cookbook by Mathieu Nayrolles

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

Beaming messages with NFC

NFC stands for Near Field Communication and allows NFC-equipped owners to exchange data by contact (or near contact) of their phones. In Android, we can use NFC through Beam. Using Beam, users can exchange a small amount of data, such as web bookmarks, contact info, directions, YouTube videos links, and so on. NFC is more convenient than other wireless technologies, such as Bluetooth or Wi-Fi for quickly sending data as no pairing or authentication is required.

Tip

The minimum SDK version to use NFC is level 10.

Getting ready

Create a new Solution named Beam_Project. To test this recipe, you'll need to deploy your application on two different NFC-enabled phones, as the emulator doesn't support NFC. Also, we will need to ...

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