Log in or register to post comments

Samples in Portrait Mode

May 4, 2012 - 11:24am #1

I'm running the FrameMarkers and ImageTargets samples in portrait mode by setting

        int screenOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;

in the initApplication(). When the application is paused and resumed (I press the home key, then relaunch through recent app list), the video feed doesn't seem to be rotated properly. Do I need to modify something else in the code to resume in portrait mode properly?

Re: Samples in Portrait Mode

May 7, 2012 - 2:03pm #4

It did work, tested on an HTC Sensation.

Is the augmentation showing up when you look at the target? If not, this may be a known issue in the release notes:

Quote:

On certain devices, the video preview rendering and the rendering layer order may be mismatched after another application overlays the QCAR rendering window. Apps may optionally destroy the android activity when an onPause() is called and may reinitialize it onResume(). This no longer happens on devices running Honeycomb or above.

- Kim

Re: Samples in Portrait Mode

May 4, 2012 - 3:23pm #3

Kim,

No other changes at all. I'm using the Droid X, OS version 2.3.3. Did it work properly on your Gingerbread device?

Re: Samples in Portrait Mode

May 4, 2012 - 1:44pm #2

Hmm, that should be enough, I just confirmed it on a gingerbread device. Can you tell us what device and OS version you are using? Have you made any other changes to the sample?

Thanks,

- Kim

Log in or register to post comments