title: Uri file size is always 0
body: <p>I'm getting a audio file which I'm saving in a <code>uri (android.net.Uri)</code></p>
  
  <p>I need to display it's size in a TextView. I tried like this:</p>
  
  <p>This is where I get the file from users library:</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.debug_layout);
  
          Intent selectIntent = new Intent(Intent.ACTION_GET_CONTENT);
          selectIntent.setType("audio/*");
          startActivityForResult(selectIntent, AUDIO_REQUEST_CODE);
  
      }
  
      @Override
      public void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
          if (requestCode == AUDIO_REQUEST_CODE &amp;&amp; resultCode == Activity.RESULT_OK) {
              if ((data != null) &amp;&amp; (data.getData() != null)) {
                  audio = data.getData();
              }
          }
      }
  </code></pre>
  
  <p>Then I pass it to the next Activity like this:</p>
  
  <pre><code>Intent debugIntent = new Intent(this, Debug.class);
          Bundle bundle = new Bundle();
          bundle.putString("audio", audio.toString());
          debugIntent.putExtras(bundle);
          startActivity(debugIntent);
  </code></pre>
  
  <p>And use it in the debug activity like this:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.debug_layout);
  
      Intent intent = this.getIntent();
      Bundle bundle = intent.getExtras();
      audio = Uri.parse((String) bundle.get("audio"));
  
      File file = new File(audio.getPath());
      long size = file.length();
      if (file.exists()) {
          Toast.makeText(this, "exists", Toast.LENGTH_SHORT).show();
      }
      filesize = (TextView) findViewById(R.id.file_size);
      filesize.setText("file size: ".concat(String.valueOf(size)));
  
  }
  </code></pre>
  
  <p><strong><code>file.length()</code> returns 0.</strong> </p>
  
  <p>How can I fix that?</p>