Choosing the listening method

Depending on the sensor you use, there are some differences that you need to consider when choosing the data retrieval method for your MIDlet:

  • Using condition listening is recommended for slow sensors such as battery charge level, charger state, and network field intensity, because with these sensors the condition evaluation is only triggered when the value changes.

  • In data listening, the value is sent with some constant rate even if the value has not changed. With fast sensors, such as accelerometer, the performance difference between condition and data listening is not so significant.