implementing OrientationEventListener to help camera issues without CameraInfo?
<p>I need to implement an <code>OrientationEventListener</code> to get the camera working correctly. Google posted a sample implementation of <code>onOrientationChanged</code> that looks like this: </p>

<pre><code>@Override
    public void onOrientationChanged(int orientation) {
        if (orientation == ORIENTATION_UNKNOWN) return;
     android.hardware.Camera.CameraInfo info =
            new android.hardware.Camera.CameraInfo();
     android.hardware.Camera.getCameraInfo(cameraId, info);
     orientation = (orientation + 45) / 90 * 90;
     int rotation = 0;
     if (info.facing == CameraInfo.CAMERA_FACING_FRONT) {
         rotation = (info.orientation - orientation + 360) % 360;
     } else {  // back-facing camera
         rotation = (info.orientation + orientation) % 360;
     }
     mParameters.setRotation(rotation);
    }
</code></pre>

<p>But I'm building against API level 8, so I don't have <code>CameraInfo</code>. How can I accomplish a similar thing as the above without <code>CameraInfo</code>?</p>
