title: How can I know the position of the camera on an android device?
body: <p>I'm building an Android application where I use the front camera for some image manipulation.</p>
  
  <p>It's important for me to know where the camera is located. For example, on the Samsung S3 it's on the upper part of the device, where as on the Galaxy Note 10 - it's on the side.</p>
  
  <p>It is important so I can know what is the orientation of the camera preview buffer and the orientation of the screen itself (I want to keep the UI always in portrait relative to the camera, i.e - so the camera is always on TOP).</p>
  
  <p>Any ideas?</p>
  
  <p>EDIT: I can use Android 4 and above (no need to support lower versions)</p>
  
  <p>Thanks!</p>