Design

The MIDlet consists of a single class, ProximityReminder. The ProximityReminder class contains a Command for registering the device's current location as a landmark and setting a ProximityListener for that landmark. As the user moves with the device, the MIDlet keeps track of the device's current location and compares it to the coordinates of the registered landmark. When the user returns to within 500 meters of the landmark, the MIDlet displays an Alert that notifies the user about their proximity to the landmark coordinates.

Figure: Proximity alert

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