How Do I Share Text Along With The Image?
When I send the image only goes nicely WhatsApp. I need to text with an image and send share and WhatsApp. When I send only the image goes. How to send this together. findViewB
Solution 1:
You can share text along with the image?
Uri uri;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
uri = FileProvider.getUriForFile(ViewerActivity.this, BuildConfig.APPLICATION_ID + ".provider", new File(medias.get(currentPos).getPath()));
} else {
uri = Uri.fromFile(new File(medias.get(currentPos).getPath()));
}
Intent intentMore = new Intent(Intent.ACTION_SEND);
intentMore.setType("*/*");
intentMore.putExtra(Intent.EXTRA_STREAM, uri);
intentMore.putExtra(Intent.EXTRA_TEXT, "Hello");
startActivity(Intent.createChooser(intentMore, "Share Image"));
Post a Comment for "How Do I Share Text Along With The Image?"