Mobile sensors - ArrowKeys

Description

This example MIDlet shows you how to use sensor data. The MIDlet demonstrates the basics of sensor operation, such as opening a sensor connection, listening to sensor values, and closing a sensor connection.

Figure: ArrowKeys MIDlet running on a Nokia Asha software platform device

For a tutorial that shows you how to create this MIDlet, see section Example: Using sensor data.

Compatibility

This MIDlet is compatible with Java Runtime for Nokia Asha software platform (1.0) for Nokia Asha software platform devices and Java Runtime 2.0.0 for Series 40 devices and newer.

This MIDlet has been tested on the following devices:

  • Nokia Asha 305 on Nokia Asha software platform (Java Runtime 2.0.0 for Series 40)

  • Nokia Asha 311 on Nokia Asha software platform (Java Runtime 2.0.0 for Series 40)

MIDlet project

The MIDlet project files are packaged as a zip file. To download the zip file, click the following link:

Download ArrowKeys

Table: MIDlet details

MIDlet version

1.0

Creation date

13 March 2012

IDE

Nokia IDE for Java ME (Eclipse) and NetBeans

SDK

Nokia Asha SDK 1.0 and Nokia SDK 2.0 for Java

MIDlet classes

The MIDlet consists of the following class (click to view the full source code):