title: How can I convert image uri to file path in android kitkat while maintaining compatibility lower than api 19?
body: <p>My app selects an image taken by the system's camera and obtain its <code>Uri</code> from <code>onActivityResult</code> method, from here i would like to convert the Uri to android standard file path so that i will be able to check its orientation by passing the file path to <code>Exifinterface</code>'s constructor and execute <code>getAttributeInt</code> to receive a value and then decide on how many degrees to rotate the image. </p>
  
  <p>I found a sample code <a href="https://stackoverflow.com/questions/20067508/get-real-path-from-uri-android-kitkat-new-storage-access-framework">here</a> on stackoverflow that has the capability to convert the image uri to file path. but the problem is, it uses DocumentContract class which is added in api level 19 onwards but my app needs to support lower version than API level 19. How can I do this? Or atleast have an alternative solution for getting the orientation of the image. </p>