Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Camera rotation

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,
Regards:
Harold.
hselvaggi
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Jan 03, 2011 7:30 pm

Top

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.

this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
spengilley
Junior Developer
Junior Developer
 
Posts: 18
Joined: Tue Sep 07, 2010 9:14 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Exabot [Bot] and 8 guests