title: Using Intent.createChooser() works fine without FileProvider on Nougat
body: <p>I noticed interesting thing. When I send file to another app by using my own intent without using FileProvider:</p>
  
  <pre><code>    Intent sendIntent = new Intent(Intent.ACTION_SEND);
      sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
      sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
      sendIntent.setType("image/gif");
      sendIntent.setPackage(packageName);
      int flags = Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS;
      sendIntent.setFlags(flags);
  </code></pre>
  
  <p>on Nougat devices app crashes.
  But if I use next code:</p>
  
  <pre><code>    Intent sendIntent = new Intent(Intent.ACTION_SEND);
      sendIntent.setType("image/gif");
      String titleForChooser = getString(R.string.app_chooser_title);
      sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
      sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
      int flags = Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS;
      sendIntent.setFlags(flags);
      Intent.createChooser(sendIntent, titleForChooser);
  </code></pre>
  
  <p>On Nougat it works fine except FB Messenger and WhatsApp. Somebody know answer "Why?"? Could you please explain me?</p>