Getting orientation of the device?
<p>I have a camera preview activity, which is forced to stay in landscape mode.</p>

<p>Is there a way I can tell the current orientation of the phone (not the screen orientation).</p>

<p>Basically I want to know if the user is holding the phone in portrait mode, or in landscape mode, so I can rotate the output captured bitmap correctly (right now it just always outputs in landscape mode).</p>

<p>Thanks</p>
