Camera rotation

All your problems with Audio, Video and Images.

Camera rotation

Postby hselvaggi » Mon Jan 03, 2011 7:38 pm

HI everybody,

I need help with a big problem I have. I'm working on an application that start a camera preview on a surface. The problem is that as soon as I rotated the cellphone the preview seems to be scaled wrongly.

At the time I fully rotated my cellphone (90º) I see a white surface only (I managed for my activity not to be restarted after the 90º rotation).

I have been looking around a solution but I wasn't able to find anything. Anyways by the time been the one I want to solve the most is the first problem.

Can anybody help me with this or point me some direction to solve it ?.

Thanks in advance,
Once Poster
Once Poster
Posts: 1
Joined: Mon Jan 03, 2011 7:30 pm


Re: Camera rotation

Postby spengilley » Fri Jan 07, 2011 8:22 pm

I am a newbie to android but I had various problems with my camera activity. I found that putting the following line in stops the camera changing rotation.It works like the android camera does.

Junior Developer
Junior Developer
Posts: 18
Joined: Tue Sep 07, 2010 9:14 pm


Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 7 guests