I want to be able to share a content from my Android app, like this template :
This is some text (mainly a description about the image shared)
The Image
Shared via MyApp
I currently use this code snippet :
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/*");
Uri imageUri = Uri.parse("android.resource://" + path);
share.putExtra(Intent.EXTRA_TEXT, "A description about the image below");
share.putExtra(Intent.EXTRA_STREAM,imageUri);
share.putExtra(Intent.EXTRA_TEXT, "Shared via MyApp");
startActivity(Intent.createChooser(share, "Choose a share option"));
Only the second putExtra
is added to the share.
How can I do this task ?
Thank's a lot.
Edit : My question is different from How to Share Image + Text together using ACTION_SEND in android? I know how to share a text and an image together, but i want to add a text before, and another text after the image.