I'm trying to read the accelerometer for a longer period of time (between one and two hours).
However, when the iPhone goes to sleep and locks, the reading of the accelerometer readout is paused.
My setInterval timer seems to be running fine though. I can also play sounds.
I see two solutions
a) Find a way to read the accelerometer while locked b) Find a way to prevent the lock
I'm using Titanium with JavaScript.