Im currently developing an application which should use some kind of augmented reality. Therefore Im trying to draw an OpenGL cube ore something over a camera preview. Im using code examples of Google and if seperated the OpenGL code works fine. So far so good. But the camera preview shows some strange behavior. If the phone is in vertical position the axes are changed and the image gets stretched to fill the whole screen. In combination with the OpenGL layer the cube which should be renderd is not visible till the rotation changed at least once.
Whereas if the phone is in horizontal position everything works perfectly right.
At least the strangest thing is: If Im running the API examples the camera preview example works for both orinetations althouhg it nevers changes orientation and seems stuck in horizontal.
For Information: This behavior seems to appear in conjunction to an update to Android 2.2 Froyo. The phone Im developing on is a HTC Desire.
I hope anyone can help or give a hint solve the issue or at least confirm the same behavior on the same or other phones maybe updated with Froyo.