I want to use accelerometer of iPhone to get the log file of accelerometer value (maybe for 24 hours). Is it possible to let accelerometer runs in background while other applications are running?
+6
A:
Nope, it is not. You basically can't run anything but a music app in the background.
You can run the accelerometer while the phone is suspended though.
See this blog for how to do it: http://marcopeluso.com/2009/08/23/how-to-prevent-iphone-from-deep-sleeping/
I use this technique in my GPS recording app.
Andrew Johnson
2010-02-19 08:50:42
A:
No, it is presently not possible, at least if you want to distribute your application through the App Store.
zoul
2010-02-19 08:50:42