I have an app that logs acceleration, rotation and gps data. The data is written to a log file on the sd card. When i plot the data on pc i see that the logging of acceleration and rotation data is suspended randomly for 10-100 seconds. The gps data is nearly equidistant.
It's implemented as one background service that listens to sensor-events and location-events. I know that there is a bug with getting sensor data when screen is off. But I'm using a Nexus 5 where it should work.
At the green line (acceleration) you see the problem. Sometimes it's suspended.
Any suggestions for solving this problem?