Design

The MIDlet consists of a single class, URLWriter, which implements the MIDlet lifecycle requirements, creates the MIDlet UI, and handles all communication with the NDEF target.

The following figure shows the opening view of the MIDlet and the result of the write operation:

Figure: URLWriter views

The MIDlet also uses the following external classes:

Figure: URLWriter class diagram

  • MIDlet is a standard class that all MIDlets must extend.

  • CommandListener is used to handle the user input in the UI.

  • TargetListener is used to detect and retrieve information about contactless targets.

For instructions on how to implement the MIDlet, see section Implementation.