title: Camera capture orientation on samsung devices in android
body: <p>I am creating a camera app. The image when captured is shown in the grid view.
  Now, the code is working completely fine on all the devices except for samsung devices.</p>
  
  <p>I am facing the orientation issue. When I capture an image in a portrait mode, the image rotates when displayed in the gridview. I have not kept any rotate code.
  Secondly, with the EXIF I achieved the proper image in the grid view but when the device orientation changes, again the image rotates in a wiered fashion.</p>
  
  <p>Attaching images:
  <img src="https://i.stack.imgur.com/96LNU.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/VCB9A.png" alt="enter image description here"></p>
  
  <p>Sorry for the resolution of the image. Please lemme know if they are not visible properly. Will upload again. I know there are lot such help on SO. But I guess I am stuck up somewhere.</p>
  
  <p>I am referring the following link:</p>
  
  <p><a href="http://blog.andolasoft.com/2013/06/how-to-show-captured-images-dynamically-in-gridview-layout.html" rel="noreferrer">http://blog.andolasoft.com/2013/06/how-to-show-captured-images-dynamically-in-gridview-layout.html</a></p>