title: Android 6: cannot share files anymore?
body: <p>I am sharing an image, and this code works properly for devices before Android 6:</p>
  
  <pre><code>Intent shareIntent = new Intent(Intent.ACTION_SEND);
  shareIntent.setType("image/*");
  Uri uri = Uri.fromFile(new File(mFilename));
  shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
  mContext.startActivity(Intent.createChooser(shareIntent, mChooserTitle));
  </code></pre>
  
  <p>However I get the toast error "<strong>can't attach empty files</strong>" when I try to share using Android 6.</p>
  
  <p>I verified that the file exists and it's not zero-length.</p>
  
  <p>Anyone has a solution for this?</p>