I want to share multiple images with one text on Whatsapp. I am using this code
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND_MULTIPLE);
intent.putExtra(Intent.EXTRA_TEXT, "Text caption message!!");
intent.putExtra(Intent.EXTRA_HTML_TEXT, "<html>Text caption message!!");
intent.setType("text/plain");
intent.setType("image/jpeg");
intent.setPackage("com.whatsapp");
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, files);
startActivity(intent);
This code works fine , but the problem is that the text appears on every image . I want the text to be placed on only one image. Is there any way to do this? TIA
source
share