title: How to set application fragments to portrait mode only?
body: <p>I have an Android app which has a main activity and 3 Fragments which are tabs. I would like the application to remain in portrait mode at all times but I can't seem to get this working. This is what I have tried, as per another stack overflow post, but I'm not sure what I'm doing wrong....does it need to be different if using fragments?</p>
  
  <pre><code>    &lt;activity
          android:name="com.tutorial.test.activities.act1"
          android:label="@string/app_name" 
          android:screenOrientation="portrait"
          android:configChanges="orientation|keyboardHidden" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>Thank you!!</p>
  
  <p>Edit: The ViewPager is on the FragmentActivity for which I am setting the screenOrientation as above.</p>