"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Screen Orientation

Hi everybody, I have one question about the screen orientation. I successfully implemented a touch-event + custom-dialog into my app. The custom-dialog pop up always in landscape-mode even if I hold my smartphone in portrait. [IMG]http://sceada.bplaced.net/vuforia/qualcomm02.jpg[/IMG] I know that the screen coordinate calculation reacts on the orientation of the smartphone. I also want to display the menu and my custom-dialog in portrait-mode if I hold my smartphone in portrait and the same in landscape. Normaly the orientation is set inside of the manifest, but i could not find anything and that means that the orientation must be flexible. What ever somewhere in the source code must be an orientation setting. Robert

I found this code snipped: [QUOTE] int screenOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; // Apply screen orientation setRequestedOrientation(screenOrientation); // Pass on screen orientation info to native code setActivityPortraitMode(

Hmm, that should have worked. What device/OS version are you testing with? If you try using portrait with one of the unmodified samples does it work? BTW I'm trying to find out how to properly do autorotation with the native SDK, but I'm not sure it's supported.