title: How to disable landscape mode?
body: <p>i'n my application i have Fragment's in a viewPager i know how to disable the landscape from manifest and from java like :</p>
  
  <pre><code>            android:configChanges="orientation"
             android:screenOrientation="portrait"
  
  ////////////////////////////////
      setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
      (setContent.....)
  </code></pre>
  
  <p>but if i hold my device in landscape mode and then i running the application the application load in landscape and the portarti mode not working. why is that?</p>
  
  <p>Ok i figure it out my bad:</p>
  
  <pre><code>getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR);
  </code></pre>
  
  <p>I forget to delete this line</p>