An example Android service showing how to receive sensor event notifications even after the screen goes off. See http://nosemaj.org/android-persistent-sensors
cloudbank/AndroidPersistentSensors
An example service which keeps getting sensor events even after the screen turns off.
Java