Log in or register to post comments

Setting Camera as Vertical

November 12, 2010 - 6:43am #1

Is there a way to set the view to vertical rather than horizontal?

I tried a few ways but I only get a small landscape view when the device is held vertically.

Re: Setting Camera as Vertical

November 16, 2010 - 8:49am #6

Using a Nexus One with Android 2.2 Froyo.

Re: Setting Camera as Vertical

November 16, 2010 - 8:40am #5

Which device are you using again? Also, which version of the Android OS is on it? Thanks!

- Kim

Re: Setting Camera as Vertical

November 16, 2010 - 4:04am #4

What I did do was change

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

to

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

Then played about in the configureVideoBackground() method in the QCARSampleActivity.cpp file to get the screen dimensions correct.

Re: Setting Camera as Vertical

November 15, 2010 - 3:49am #3

When the screen is set to portrait the buttons,labels etc are set to portrait and the video from the camera is landscape set inside the portrait screen. (appears small and vertically squashed)

Re: Setting Camera as Vertical

November 12, 2010 - 9:41am #2

See the comments on orientation in the QCARSampleActivity.java file. Portrait should work on 2.2 devices. We suggest sticking with landscape if you would like your app to work on 2.1 devices.

- Kim

Log in or register to post comments