title: Send Image from custom Keyboard to specific chat
body: <p>I made a custom keyboard which has images. I tried to send an image to a specific chat, but it opens <strong>share with</strong> which includes all chats. Here's my code:</p>
  
  <pre><code>public Intent createIntent(Context context, InputBinding inputBinding, String uri) {
      Log.v("inputBinding", String.valueOf(inputBinding));
      String[] packageNames = context.getPackageManager().getPackagesForUid(inputBinding.getUid());
      Intent sharingIntent = new Intent(Intent.ACTION_SEND);
      sharingIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
      sharingIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
      sharingIntent.setType("image/*");
      sharingIntent.setPackage(packageNames[0]);
      sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(uri));
      return sharingIntent;
  }
  </code></pre>