2

I know this has been asked before, but the answers that I see are 2 years back. So I'll rephrase the question: are there any new power management APIs in iOS4 that I can take advantage of to turn off the screen?

-Overlaying a black view on top of an existing view still drives the screen's backlight and refresh rate.

Can I let the device screen timeout normally and then run my app in the background? I need to collect accelerometer data.

Thank you!

Alex Stone
  • 46,408
  • 55
  • 231
  • 407

1 Answers1

1

As far as I know you can't collect accelerometer data while the phone is locked. Also there are no power management APIs.

I found this for you tho where they give a trick of using proximity sensor but that doesn't seem like a reasonable solution. Enable iPhone accelerometer while screen is locked

Community
  • 1
  • 1
raixer
  • 1,844
  • 3
  • 15
  • 16