title: Set landscape orientation without locking sensor orientation
body: <p>I'm working on an application that has an inline video player. I need to reproduce the fullscreen behavior of Youtube.</p>
  
  <p>When the user goes to landscape rotating the device I catch it via onConfigurationChanged and make the corresponding layout modifications.</p>
  
  <p>However, I also have a button to set fullscreen. I need this button to go to landscpe (ergo, fullscreen) but don't lock the orientation change via sensor.</p>
  
  <p>Here is what I'm currently doing on onConfigurationChanged:</p>
  
  <pre><code>@Override
  public void onConfigurationChanged(Configuration newConfig) {
      super.onConfigurationChanged(newConfig);
      if (this.isLandscape(newConfig.orientation)){
          this.goToFullScreenMode();
      }else{
          this.goToInlineMode();
      }
  }
  </code></pre>
  
  <p>And here is what I'm doing in the button but failing because it locks the Activity in landscape:</p>
  
  <pre><code>this.getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
  </code></pre>
  
  <p>What I need is to go to landscape mode but allow the user to change back to portrait with the sensor, like Youtube does.</p>
  
  <p>I can do it by just locking in landscape until the device is horizontal (by reading directly from the sensor) and then unlock the orientation again. I don't think this is the most "correct" way of doing it.</p>