title: "Error, could not load media" when attempting to call Photos app crop intent sending Uri that points to files dir
body: <p><strong>What I'm attempting to do:</strong></p>
  
  <p>Select a photo from my Facebook photos and then send that photo to the native Photo editing experience (the Photos app)</p>
  
  <p><strong>Here are the steps I'm taking:</strong></p>
  
  <ol>
  <li>Get url for photo from fb</li>
  <li>Use Picasso to fetch image url into Bitmap</li>
  <li>Store that Bitmap to a file on disk in my app specific /data/data/ dir</li>
  <li>Create a Uri from that file path</li>
  <li>Send that Uri as the data part of the implicit Intent for the "com.android.camera.action.CROP" action</li>
  </ol>
  
  <p>I'm guessing the problem is that the Photos app doesn't have permission to access the file in my /data/data dir, but I'm curious if anyone can confirm that is indeed the problem and, if so, how you solved it. I'm guessing the solution is to save the file to the SD card instead so that the Photos app can access it?</p>
  
  <p>Ok, here's some code ...</p>
  
  <p><strong>After I've written the Bitmap to file, I call this to get Uri</strong></p>
  
  <pre><code>Uri pictureUri = Uri.fromFile(new File(path))
  </code></pre>
  
  <p><strong>I then send that Uri to the crop intent like so</strong></p>
  
  <pre><code>Intent intent = new Intent("com.android.camera.action.CROP");
          intent.setDataAndType(pictureUri, "image/*");
  </code></pre>
  
  <p><strong>And start Activity for Result</strong></p>
  
  <pre><code>activity.startActivityForResult(intent, RequestCode.CROP_IMAGE);
  </code></pre>
  
  <p>Any feedback much appreciated!</p>