Share Image to WhatsApp with Caption from your Android App

Send Image with Caption Android Tutorial.png
Send Image with Caption Android Tutorial.png

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.

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!