title: Android Uri to Filesize
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6049926/android-get-the-size-of-a-file-in-resources">Android: Get the size of a file in resources?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to upload a file to a WebServer. To show the progress of the upload I need to know the complete size of the file. Since I have only the Uri of the file (got it from an Intent), I have no chance to get at the file's size. My workaround is to open an InputStream and count the bytes that are read on this InputStream. But this is circuitous. Is there an easier/conventional way to solve this issue? </p>
  
  <p>Thanks</p>