title: Get the file size in android sdk?
body: <p>I have a problem getting the size of a file. I have the following code:</p>
  
  <pre><code>File file = new File("/sdcard/lala.txt");
  long length = file.length();
  </code></pre>
  
  <p>And always length is zero, yes zero.</p>
  
  <p>I am using Android SDK (not sure what version), the code is running inside an Activity, I have created an sdcard.  </p>
  
  <p>Perhaps it is a permission issue? Is there anything I am missing?</p>