0

In my app I'm try to share photo from Internet via ACTION_SEND

Intent sharingIntent = new Intent(Intent.ACTION_SEND);
    Uri screenshotUri = Uri
            .parse("http://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/PNG_transparency_demonstration_2.png/280px-PNG_transparency_demonstration_2.png");

    sharingIntent.setType("image/*");
    sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
    sharingIntent.putExtra(Intent.EXTRA_TEXT, "MotivateMe");

    startActivity(Intent.createChooser(sharingIntent,
            "share with: "));

But this doesn't works, all can't load picture. It's possible to share photos via internet references or not

Artem Cherkasov
  • 239
  • 4
  • 17

1 Answers1

1

No, your photo reference link will be treated as link. You have to save locally before sharing. Temporary download and then try to send using local link.

Bhupinder
  • 1,329
  • 1
  • 14
  • 29