You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When tapping on a sensor, one can set the sampling rate on release SimpleUiWithSoundSensors. However, it sometimes crashes the app. In addition, the sampling rate is difficult to enter and it may not be applied correctly to the sensors. The necessary improvements are
UI improvement
having two fields for sampling rate and sampling interval, respectively;
add a slider using which a user can slide it between a range without manually enter a number in either the sampling rate or interval field. The mininumm allowable value should be the returned value of getMinDelay()
right now, if you set a sampling rate, it applies to all sensors. A user should be able to set different sampling rate for different sensors.
this only needs to and can only be applied to sensors whose sampling rate or interval could be programmably change to an arbitrary value. See the note below.
Note that Google documentation indicates that the sampling rate or intervals are enforced using the best effort approach, here is the quote from the documentation,
The rate sensor events are delivered at. This is only a hint to the system. Events may be received faster or slower than the specified rate. Usually events are received faster. The value must be one of SENSOR_DELAY_NORMAL, SENSOR_DELAY_UI, SENSOR_DELAY_GAME, or SENSOR_DELAY_FASTEST or, the desired delay between events in microseconds. Specifying the delay in microseconds only works from Android 2.3 (API level 9) onwards. For earlier releases, you must use one of the SENSOR_DELAY_* constants.
From @graychan on September 8, 2014 18:32
When tapping on a sensor, one can set the sampling rate on release SimpleUiWithSoundSensors. However, it sometimes crashes the app. In addition, the sampling rate is difficult to enter and it may not be applied correctly to the sensors. The necessary improvements are
Note that Google documentation indicates that the sampling rate or intervals are enforced using the best effort approach, here is the quote from the documentation,
Copied from original issue: sysnetlab/SensorDataCollector#147
The text was updated successfully, but these errors were encountered: