Check the sensor data every 0.5 seconds Android -
there onsensorchanged(sensorevent event)
listener android sensor. triggered whenever tiny change in sensor data. how can check sensor reading every 0.5s instead of whenever sensor data has changed?
i'm afraid can not set interval callback triggered since passing sensormanager.sensor_delay_normal
parameter cause trigger more once every half second. check values sensor_delay
below.
sensor_delay_ui (60,000 microsecond delay)
sensor_delay_fastest (0 microsecond delay)
sensor_delay_normal) (200,000 microseconds delay)
so, receive callbacks every 0.2 seconds , implement way doyourprocedure()
once every 2.5 ticks.
Comments
Post a Comment