Hello,
I am writing an application that uses the built-in pressure sensor. I experienced that after the screen has gone dark the pressure sensor stops delivering data. The onSensorChanged() method of the SensorEventListener never gets called when the screen is off. When the screen is switched on the sensor immediately starts providing samples again. I tried setting a wakelock, unregistering and re-registering the SensorEventListener triggered by a ScreenOff Action, running the service that hosts the listener in foreground - nothing works. I use the latest stable version of slim bean but I doubt that using stock rom would behave differently. Has anyone tried this before and maybe even found a workaround? Any hints that point me in the right direction appreciated. Same Code works as expected on a Nexus4.
Best Regards
Paul
I am writing an application that uses the built-in pressure sensor. I experienced that after the screen has gone dark the pressure sensor stops delivering data. The onSensorChanged() method of the SensorEventListener never gets called when the screen is off. When the screen is switched on the sensor immediately starts providing samples again. I tried setting a wakelock, unregistering and re-registering the SensorEventListener triggered by a ScreenOff Action, running the service that hosts the listener in foreground - nothing works. I use the latest stable version of slim bean but I doubt that using stock rom would behave differently. Has anyone tried this before and maybe even found a workaround? Any hints that point me in the right direction appreciated. Same Code works as expected on a Nexus4.
Best Regards
Paul
Last edited: