Log in or register to post comments

Device orientation

September 14, 2011 - 3:25am #1

Hi,
i have a question about device orientation and camera image.
I have developed an application like QCAR Dominoes sample and i need to rotate the interface (interface_overlay in sample) according to the device orientation.
I tried to set (in main application activity class)
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
but the effect is not that expected.
Thanks in advance.

Stefano

P.S: Sorry for my poor english...

Re: Device orientation

September 14, 2011 - 9:52pm #2

QCAR samples ignore orientation changes. See the following in the AndroidManifest file:

android:configChanges="orientation|keyboardHidden"

You can change the orientation at startup by editing the initApplication method in Dominoes.java.

- Kim

Log in or register to post comments