fix: ask Android to deliver accelero samples continuously, not in batches

This commit is contained in:
2026-05-17 20:33:00 +02:00
parent 0fa4011d4f
commit 4ae0c9aef8
2 changed files with 4 additions and 3 deletions

View File

@@ -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);