It is a known G1 bug. See also
http://groups.google.com/group/android-developers/browse_thread/thread/601862b9f379e944/

A workaround is to design your app for landscape mode and force it to
always run in that mode, for instance by using
android:screenOrientation="landscape" in the manifest. It is not the
preview but your app then that rotates to match the fixed preview
orientation.

Regards

On Dec 21, 4:15 am, chrispix <[email protected]> wrote:
> Hopefully this makes sense. I have a camerapreview on a surface, the
> issue is that it rotated 90degrees. If I rotate the phone the camera
> preview is still rotated 90 degrees, so it must be using the
> accelerometer to determine upright.
>
> If I slide the keyboard out, it fixes it and the image is then
> vertical. Any suggestions? I have tried the following :
>
> Camera.Parameters p = camera.getParameters();
> p.set("rotation", 0);
>
>         surfaceHolder.getSurface();
>         Surface.setOrientation(Display.DEFAULT_DISPLAY,
> Surface.ROTATION_180);
>
> Any other suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to