title: Force portrait mode in camera
body: <p>I am invoking a camera using an intent and clicking a picture.
  Presently I am on emulator and would like to force camera to click the pictures in portrait mode(need to capture a video of app working,so orientation change would look bad) but the camera screen appears landscape and all the further activities which I invoke in <code>onActivityResult().</code></p>
  
  <p><img src="https://i.stack.imgur.com/ugOze.png" alt="Camera Screen"></p>
  
  <p>After clicking the picture the Activity layout comes out in landscape mode like this:
  <img src="https://i.stack.imgur.com/Alxsx.png" alt="enter image description here"> </p>
  
  <p>while all my previous activity have displayed correctly in portrait orientation.
  I tried adding </p>
  
  <pre><code>android:screenOrientation="portrait" 
  android:configChanges="orientation|keyboardHidden"
  </code></pre>
  
  <p>to the activity shown above but to no avail.Though when i hit home and upon resume it displays correctly in portrait.</p>
  
  <p>So how do I force portrait mode??</p>