I have a program that reads and writes all the sensors values file, but when you turn off the screen stops the listener on the sensors and the record on txt file. I already tried with the wake lock, but with little success, I want to know if you have ideas or if I have to resort to a wake to keep me always on the monitor, let me know. thanks
Solved?
Try onResume and LocationListener