title: PhoneGap/Android - Locking orientation to portrait
body: <p>I have tried every method to lock the screen to portrait orientation but they simply do not work after testing the app via Adobe PhoneGap Build.</p>
  
  <p>Firstly, I have modified the MainActivity.java file to include at onCreate</p>
  
  <pre><code>setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
  </code></pre>
  
  <p>Secondly,  I have modified the config.xml file to include </p>
  
  <pre><code>&lt;preference name="orientation" value="portrait" /&gt;
  </code></pre>
  
  <p>Thirdly, I have modified the Manifest file to include</p>
  
  <pre><code>android:screenOrientation="portrait"
  </code></pre>
  
  <p>None of the above are working.</p>