Example: Listening to proximity events

This example MIDlet shows you how to use a ProximityListener on Symbian devices. The MIDlet registers a location as a landmark and compares its distance to the current detected location of the device. When the two locations are within a 500 meter radius of one another, the MIDlet displays an alert.

Figure: ProximityReminder MIDlet

Prerequisites

You need the following to develop and test this MIDlet:

  • Symbian^3 SDK for Nokia devices or newer

  • Symbian^3 device or newer

For instructions on how to set up the Java ME development environment, see section Setting up the development environment.

Development

For more information about the MIDlet, see:

  • Design for information about the design and functionality of the MIDlet

  • Implementation for instructions on how to implement the MIDlet

You can download the project files for the MIDlet from the download page.