This example MIDlet shows you how to use the Nokia Notifications using the Nokia Notifications API.
Figure: NNAClientExample MIDlet running on a Nokia Asha software platform device
For a tutorial that shows you how to create this MIDlet, see section: Example: Receiving Nokia notifications.
This MIDlet is compatible with Java Runtime for Nokia Asha software platform (1.0) for Nokia Asha software platform devices and newer.
Note: Download and install the EnvironmentSelector MIDlet on the device before running the NNAClientExample MIDlet. The EnvironmentSelector MIDlet is required to set the Notification Enabler to point to the required environment (Sandbox environment in our case) on the device.
The MIDlet distributable and source files are packaged as a zip file. To download the zip file, click the following link:
Download NNAClientExample (includes EnvironmentSelector MIDlet)
The MIDlet consists of the following classes (click to view the full source code):