This example MIDlet shows you how to use GPS features on Series 40 and Nokia Asha software platform 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 SDK or newer
Series 40 6th 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 get started with Java ME, see section Getting started.
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.