SurfaceView is displaying camera feed sideways
<p>For some reason the camera feed in my program is sideways. If I hold my finger up to the camera from the bottom, it shows up as coming from the right in the surfaceview.</p>

<p>I have a pretty standard implementation</p>

<pre><code>    surfaceView = (SurfaceView)findViewById(R.id.surfaceView);
    surfaceHolder = surfaceView.getHolder();
    surfaceHolder.addCallback(surfaceCallback);
    surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
</code></pre>

<p>I've looked around but I can't seem to find any information on this. My device is a nexus One.</p>

<p>EDIT: If I set the screen orientation to landscape then it works fine for some reason... Can't get it in portrait though.</p>
