Any suggestions? I have made my camera surface preview an activity. While it is set inside a tab (portrait) it does not matter if i set the surfacepreview activity in the manifest as portrait or landscape, it is always set to landscape.
I can't have my application turn all the tabs into landscape view. I was hoping that I could show the activity inside my tab (which I can ok - so I am pretty sure my code - while ugly) is working fine as an activity. Chris. On Dec 21, 12:17 am, blindfold <seeingwithso...@gmail.com> 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 <chris...@gmail.com> 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---