fix: ask Android to deliver accelero samples continuously, not in batches
This commit is contained in:
@@ -152,7 +152,8 @@ public class LstForegroundService extends Service implements SensorEventListener
|
||||
sensorManager.registerListener(
|
||||
this,
|
||||
accelerometer,
|
||||
SensorManager.SENSOR_DELAY_GAME
|
||||
SensorManager.SENSOR_DELAY_GAME,
|
||||
0 // maxReportLatencyUs (we want real-time delivery)
|
||||
);
|
||||
isCollecting = true;
|
||||
onStartRecording(meta);
|
||||
|
||||
Reference in New Issue
Block a user