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