0

I can't share Image with url :(I am using from Universal Image Library)

    Uri screenshotUri = Uri.parse("http://www.myurl.com/upload/Files/Walpaper/Logo/201631512317849.jpg");
    String text = "Look at my awesome picture";
    Intent shareIntent = new Intent();
    shareIntent.setAction(Intent.ACTION_SEND);
    shareIntent.putExtra(Intent.EXTRA_TEXT, text);
    shareIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
    shareIntent.setType("image/*");
    shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);

0 Answers0