Thank you very much for the info. I will read up on that. I thought I
had seen something as a G1 bug.
I guess zxing forced landscape mode? I guess that would explain their
text rotated vs the surface..

Thanks again!

Chris.

On Dec 21, 12:17 am, blindfold <[email protected]> wrote:
> It is a known G1 bug. See 
> alsohttp://groups.google.com/group/android-developers/browse_thread/threa...
>
> 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?- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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