This example shows you how to create a simple Near Field Communication (NFC) MIDlet that reads data from contactless targets and displays the data on the screen. The data read is the unique identifier (UID) of the target, and it is read only from an NDEF target. UIDs are factory-programmed and can be used to distinguish between targets.
Note: The MIDlet does not read the actual NDEF message (payload) from the target.
Figure: UIDReader MIDlet
For a tutorial that shows you how to create this MIDlet, see section Example: Creating a UID reader.
This MIDlet is compatible with NFC-enabled Symbian devices with Java Runtime 2.2 for Symbian or newer.
This MIDlet has been tested on the following devices:
Nokia 6212 Classic (Series 40 5th Edition FP1)
Nokia 700 (Symbian Belle with Java Runtime 2.3 for Symbian)
Nokia C7 Astound (Symbian Anna with Java Runtime 2.2 for Symbian)
The MIDlet project files are packaged as a zip file. To download the zip file, click the following link:
The MIDlet consists of the following class (click to view the full source code):