This example MIDlet shows you how to use GPS features on Series 40 and Symbian devices. The MIDlet is designed to look like a normal compass. When the device is pointed in the direction the user is moving, the compass indicates the north direction. The compass also shows the direction of selected landmarks.
This MIDet is optimized for Series 40 devices with GPS and a 240 x 320 resolution, especially Nokia 2710 Navigation Edition. However, it also works on other Nokia devices with GPS.
Figure: Compass showing the direction of Mecca
You need the following to develop and test this MIDlet:
Series 40 6th Edition or S60 3rd Edition SDK or newer
Series 40 6th Edition or S60 3rd Edition device or newer with GPS support
Note: The MIDlet has been designed for the 240 x 320 resolution, which means that the MIDlet is not fully optimized, though still functional, on devices with a different resolution.
For instructions on how to set up the Java ME development environment, see section Setting up the development environment.
For more information about the MIDlet, see:
Design for information about the design and functionality of the MIDlet
Implementation for information about implementing the MIDlet
You can download the project files for the MIDlet from the download page.