title: How do I share image and text together in WhatsApp
body: <p>I have a share feature which should share both image and text together. I am doing it as shown below</p>
  
  <pre><code>val uri = FileProvider.getUriForFile(context!!,BuildConfig.APPLICATION_ID + ".provider",file)
  
  val intent = Intent(Intent.ACTION_SEND)
  intent.putExtra(Intent.EXTRA_STREAM, uri)
  intent.flags = Intent.FLAG_GRANT_READ_URI_PERMISSION
  intent.type = "*/*"
  
  if (etShareMessage.text.isNotEmpty()) {
      intent.putExtra(Intent.EXTRA_TEXT, etShareMessage.text)
  }
  
  val title = resources.getString(R.string.screenshot_share_with)
  
  val chooser = Intent.createChooser(intent, title)
  
  // Verify the intent will resolve to at least one activity
  if (intent.resolveActivity(activity?.packageManager) != null) {
      startActivity(chooser)
  } else {
      ToastUtils.showToast(context,getString(R.string.screenshot_sorry_no_apps_to_share))
      dismiss()
  }
  </code></pre>
  
  <p>It works fine for <a href="https://play.google.com/store/apps/details?id=com.google.android.gm" rel="nofollow noreferrer">Gmail</a> and <a href="https://play.google.com/store/apps/details?id=com.bsb.hike" rel="nofollow noreferrer">Hike</a>. But <a href="https://play.google.com/store/search?q=WhatsApp+Messenger&amp;c=apps" rel="nofollow noreferrer">WhatsApp</a> shows only the image. I have referred <a href="https://stackoverflow.com/questions/23077338/share-image-and-text-through-whatsapp-or-facebook">this</a> post and few other links. But no luck. I can see that <a href="https://play.google.com/store/apps/details?id=in.amazon.mShop.android.shopping" rel="nofollow noreferrer">Amazon</a> app and <a href="https://play.google.com/store/apps/details?id=com.showtimeapp" rel="nofollow noreferrer">Loco</a> app are able to do this.</p>
  
  <p>Can anyone help me tackle why WhatsApp is not taking text from above intent?</p>