Enable iPhone accelerometer while screen is locked..

Posted by kamziro on Stack Overflow See other posts from Stack Overflow or by kamziro
Published on 2010-03-27T13:27:33Z Indexed on 2010/03/27 13:33 UTC
Read the original article Hit count: 549

Filed under:
|
|

So apparently it is possible to keep the processor going processing stuff while the screen is locked, as indicated here:

http://stackoverflow.com/questions/1551712/running-iphone-apps-while-in-sleep-mode

However, after testing with the example code, UIAccelerometer will just stop giving value as soon as the device is locked pronto. Is there a way to force otherwise?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about accelerometer