Feature description

The Mobile Sensor API allows MIDlets to fetch data from the sensors of a mobile device.

For instructions on using the Mobile Sensor API in your MIDlet, see section Mobile sensors.

Symbian supported features

The Symbian platform supports the mandatory part of the API specification:

The Symbian platform supports the following sensors:

  • Accelerometer

    • Used to measure the acceleration of the device on three different axes (x, y, z)

    • Can be used to measure the acceleration of gravity to determine the orientation of the device, or the acceleration of movement of the device

    • Returns output in two formats:

      • Raw (integer)

      • SI acceleration values (m/s^2, double)

    • Sampling rate is 40 Hz by default. Symbian C++ applications can change the value, but MIDlets can not. If the sampling rate is changed, the MIDlet is notified only by the rate of accumulated measurement values.

  • Battery charge level sensor

    • Used to measure the current battery charge level of the device

    • Sampling rate is 10 Hz

  • Charger state sensor

    • Used to check whether the device has been connected to a battery charger

    • Sampling rate is 10 Hz

  • Network field intensity sensor

    • Used to measure the intensity of the currently used cellular network signal

    • Sampling rate is greater than 100 Hz

Symbian excluded features

The Symbian platform does not support the optional part of the API specification:

The Symbian platform does not support the following features: