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

@@ -12,8 +12,8 @@ android {
applicationId "at.lockstep"
minSdk 24
targetSdk 34
versionCode 10002
versionName "1.0.2"
versionCode 10003
versionName "1.0.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {

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