Android camera being landscaped in some devices

Posted by nala4ever on Stack Overflow See other posts from Stack Overflow or by nala4ever
Published on 2011-01-10T13:17:47Z Indexed on 2011/01/10 14:53 UTC
Read the original article Hit count: 164

Filed under:
|
|
|

Im new to Android and I tried a tutorial for camera API. The tutorial works fine. When I use HTC desire I can see the camera view in both portrait and landscape, but when I use Samsung Galaxy I get a the camera view only in a landscaped view. I tried the following code to rotate the camera view as well..

        Camera.Parameters parameters = camera.getParameters();                        
        parameters.setRotation(90);

then the camera doesn't work as expected. (screen splits into 4 and not clear). Does anyone have an idea for this issue ? Thanks.

© Stack Overflow or respective owner

Related posts about android

Related posts about view