NFC - URLWriter

Description

This example shows you how to create a simple Near Field Communication (NFC) MIDlet that writes data to contactless targets. The data written is the http://www.developer.nokia.com URL as an NDEF record of type urn:nfc:wkt:U (a URI record). The data is written only to an NDEF target.

Figure: URLWriter MIDlet

For a tutorial that shows you how to create this MIDlet, see section Example: Creating a URL writer.

Compatibility

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)

MIDlet project

The MIDlet project files are packaged as a zip file. To download the zip file, click the following link:

Download URLWriter

Table: MIDlet details

MIDlet version

1.2

Creation date

20 January 2012

IDE

Eclipse and NetBeans

SDK

Symbian^3 SDK 1.0 for Nokia devices with NFC plug-in

MIDlet classes

The MIDlet consists of the following class (click to view the full source code):