Log in or register to post comments

Dynamically change the screen mode

April 15, 2013 - 5:35am #1

HI 

i have to change screen mode at run time (portrait to landscape)

when i  do it the surface video not playing on the markar. its turned  on 90 degree and rendering here and there.

.private void initApplication() {

// Set the screen orientation:
int screenOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
 
// Apply screen orientation:
setRequestedOrientation(screenOrientation);
 
// Pass on screen orientation info to native code:
setActivityPortraitMode(screenOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
 
storeScreenDimensions();
//
 
this case i have  to change ......
 
case 7:
if (checkVideo) 
{
// Set the screen orientation:
int screenOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
 
// Apply screen orientation:
setRequestedOrientation(screenOrientation);
 
// Pass on screen orientation info to native code:
setActivityPortraitMode(screenOrientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
 
storeScreenDimensions();
//
// loadingModels();
updateApplicationStatus(UPDATE_DAT_XML_DATA);
surfacevid = true;
surfaceimg = false;
stopNativeScan();
checkVideo = false;
}
 
break;

 

noe my video not playing exact at marker .

please help me out.

Log in or register to post comments