title: Prevent Orientation change in Xamarin Android Application
body: <p>Is it possible to prevent the orientation of an Android application from changing ? I have an application that previews the phone camera and I would like the orientation not to change.</p>
  
  <p>I have tried adding this to the manifest but it did not make a difference</p>
  
  <pre><code>&lt;application android:label="TextureViewCameraStream" android:hardwareAccelerated="true"&gt;
      &lt;/application&gt;
      &lt;activity
         android:screenOrientation="portrait"
         android:configChanges="orientation|keyboardHidden"&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>I am using Xamarin for Android and C#</p>
  
  <p>Thank you</p>