if your target platform is 2.2 you can use method camera.setDisplayOrientation(); but if you target platform <2.1 you can get correct preview only in landscape mode.
On 17 ноя, 17:15, ping <bernd.warm...@gmail.com> wrote: > Hello, > I'm showing a camera preview in my app. When i set the > android:screenOrientation attribute of the activity to "landscape" > everything's perfect ... but i wan't the orientation to be > vertical.... so When i change the attribute to "portrait" the > orientation of the camera is totally wrong. The picture is distorted, > upside down and so on... > what's the problem here? do i have to change another things too to > have a vertical ScreenOrientation? > > greets -- 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