Access And Use The NFC (Near Field Communication) Hardware In Delphi XE7 Firemonkey On Android

Delphi XE7 Firemonkey Android NFC BridgeDevelopers Brian Long and Daniel Magin teamed up to enable NFC support on Android in Delphi XE7 Firemonkey. NFC stands for near field communication and it is a set of wireless technologies available on Android devices which only connects with other devices within 4cm. Brian Long has released a tutorial on how to get NFC support working in your own XE5, XE6, and XE7 projects (should work in AppMethod as well). First off it requires access to the NFC sensor and so you need to enable the NFC permission for your app in the Android manifest. There are also two different methods for accessing the NFC data which are the tag dispatch system and the foreground dispatch system. Both methods are covered in depth in the tutorial. The tag dispatch system mainly involves customizing the Android manifest and adding an XML file to your project. The foreground dispatch system is more difficult to achieve and involves overriding the Firemonkey Android NativeActivity. The code inherits from FMXNativeActivity and overrides the OnNewIntent event. The code for reading and responding to the NFC intents is placed in the new OnNewIntent event. The tutorial is really in depth so you’ll need to access it directly for all of the sample source code. There is also a blog post discussing the tutorial and it also contains links to the tutorial for each version of Delphi.

Head directly to the tutorial for implementing tag and foreground dispatch for NFC access in Delphi XE7 Firemonkey on Android.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Access And Use The NFC (Near Field Communication) Hardware In Delphi XE7 Firemonkey On Android by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

One Response to Access And Use The NFC (Near Field Communication) Hardware In Delphi XE7 Firemonkey On Android

  1. Pingback: Tutorial On How To Build NFC Functionality Into Your Delphi XE7 Firemonkey Apps On Android | Delphi XE5 XE6 XE7 Firemonkey, Delphi Android, Delphi IOS

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi XE7 Firemonkey Parallel For Loop
Fast Threaded Parallel For Loop In Delphi XE7 Firemonkey On Android, IOS, Windows, And OSX

David Intersimone from Embarcadero has a blog post up which highlights more information about the new parallel programming library which...

Close