
We have seen how to share Text Message to WhatsApp Application from your App, similarly, we can also send Image contents with text caption to WhatsApp using Intents.
You need a URI variable that holds the image reference from your application or location on External or Internal storage and adds the following lines to the Intent Object.
intent.putExtra(Intent.EXTRA_STREAM,uri);
intent.setType("image/jpeg");
Let's create an Android Application with an Activity screen containing an EditText to hold the caption message and Button to call the send Intent Object.
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!