title: Why Android cannot read the file to a File object?
body: <p>This is my code to create a File Object. I am sure that the file is existing. However the file <code>length()</code> returns 0 and the <code>exists()</code> returns false too.</p>
  
  <pre><code>File uploadFile = new File(Environment.getExternalStorageDirectory() + "/DCIM/DSC00050.jpg");
  int totalSize = (int) uploadFile.length(); // Get size of file, bytes
  </code></pre>