title: Android 6.0 secure intents involving permissions
body: <p>I have a question about the SDK 23 permission system. I guess it's easier with an example.</p>
  
  <p>I have an app to share images. From the app you can tap an image and share to popular messaging apps. The current system is saving a Bitmap to the <code>getExternalCacheDir()</code> and share the Uri in the intent. Let's say I want to share to Hangouts.</p>
  
  <ul>
  <li>Scenario 1: The user has already authorized Hangouts to access Media. It works.</li>
  <li>Scenario 2: The user has not authorized yet Hangouts to access Media. When sharing, an error is logged because Hangouts does not have the permissions to read from Media.</li>
  </ul>
  
  <p>My problem is that when sending the intent I cannot know if the user has already authorized Hangouts to read from Storage.</p>
  
  <p>Is there a way to check if other apps "respond" to tasks involving permissions? Is there a way I don't know of to do this in a safe way without crashy experiences for the user?</p>
  
  <p>Thanks!</p>