Page 1 of 1

Question about setRequestedOrientation

Posted: 31 Jan 2014 13:20
by dfdf
At the end of onCreate(),I have found this:

// 100 is the value for screen_orientation_start_lock
setRequestedOrientation(mScreenOrientation != 100 ? mScreenOrientation:getScreenOrientation());

I want to learn what does it mean,thank you!

Re: Question about setRequestedOrientation

Posted: 02 Feb 2014 21:10
by edwardw
It means that if the setting for screen orientation is set to 'locked', it will preserve the current orientation, else it will set whatever was requested in mScreenOrientation.