The android has also the following call to register a sensor:
boolean registerListener (SensorEventListener listener,
Sensor sensor,
int samplingPeriodUs,
int maxReportLatencyUs)
The maxReportLatencyUs can be used to set the interval in reporting of a sensor. This can be higher than second and it helps to reduce power consumption in sensors like a pedometer.
Probably, in addition of Initialize2, we need an Initialize3 with maxReportLatencyUs added.
Also it will be helpful to have added the constant values TYPE_STEP_COUNTER and TYPE_STEP_DETECTOR and probably others that do not exist.
Thank you in advance
boolean registerListener (SensorEventListener listener,
Sensor sensor,
int samplingPeriodUs,
int maxReportLatencyUs)
The maxReportLatencyUs can be used to set the interval in reporting of a sensor. This can be higher than second and it helps to reduce power consumption in sensors like a pedometer.
Probably, in addition of Initialize2, we need an Initialize3 with maxReportLatencyUs added.
Also it will be helpful to have added the constant values TYPE_STEP_COUNTER and TYPE_STEP_DETECTOR and probably others that do not exist.
Thank you in advance