I am trying to make pictures using the camera be oriented correctly when saved. I tried using the orientation sensor but it can't seem to be calibrated. I wanted to just grab the orientation like this: How can I get the current screen orientation? but it seems that locking your app as a portrait only app means it will always return portrait only.
So how do I get the screens real orientation despite the app being locked in landscape mode?