You can share multiple images to WhatsApp contacts using Intents by using putParcelableArrayListExtra method and passing an image URI ArrayList object.
Code Snippet: Uri uri1 = Uri.parse("android.resource://com.code2care.example.whatsappintegrationexample/drawable/image1");
Uri uri2 = Uri.parse("android.resource://com.code2care.example.whatsappintegrationexample/drawable/image2");
Uri uri3 = Uri.parse("android.resource://com.code2care.example.whatsappintegrationexample/drawable/image3");
ArrayList<Uri> imageUriArray = new ArrayList<Uri>();
imageUriArray.add(uri1);
imageUriArray.add(uri2);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_TEXT, "Text caption message!!");
intent.setType("text/plain");
intent.setType("image/jpeg");
intent.setPackage("com.whatsapp");
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, imageUriArray);
startActivity(intent);
You would see multiple images stack when the Android WhatsApp Activity page is loaded and you select a contact or group!!

Share Multiple Images with WhatsApp Android Intent
Comments:
- Worked like a charm! Thank you!
anon 08 Nov 2020 17:11:43 GMT
- Further comments disabled!
More Posts related to WhatsApp,
- Officially Send WhatsApp message using webpage (html)
- Can we move apps like WhatsApp, Facebook to external MicroSD card
- [Solution] Installing Whatsapp There's insufficient space on the device
- How to know if someone has read your WhatsApp message
- How to send WhatsApp message from your Android App using Intent
- Share Multiple Images in WhatsApp using Android Intent
- Share Image to WhatsApp with Caption from your Android App
- WhatsApp launches WhatsApp Web to Access Messages over web browser
- WhatsApp Web escanner
- How to resolve Certificate Expired WhatsApp Error
More Posts:
- reCaptcha Verification expired. Check the checkbox again - Html
- Android Studio Native typeface cannot be made error - Android
- MySQL Error :1007 SQLSTATE: HY000 (ER_DB_CREATE_EXISTS) Message: Can't create database '%s'; database exists - MySQL
- Mac OS X Error: Could not create the Java Virtual Machine - Mac-OS-X
- Android [SDK Manager] The system cannot find the path specified - Android-Studio
- How to stop disable Facebook video autoplay during scroll - Facebook
- NewApi error : Finds API accesses to APIs that are not supported in all targeted API versions - Android
- JSON Text to JavaScript Object using eval() Example: JSON Tutorial - Json-Tutorial
- Failed to load the JNI shared library jvm.dll - Eclipse
- PHP Script to Upload Images to Server - PHP
- Get Device Screen Width and Height using javaScript - JavaScript
- How to get SharePoint List Item URL using PowerShell - SharePoint
- Your Android SDK is missing, out of date or corrupted SDK Problem - Android-Studio
- Send Email with attachment using SharePoint PowerShell - SharePoint
- How to add Newline to text in Android TextView - Android