"Sorry, you can't send this image"


Last Updated:

  1. MIIISTER NEUGIT

    MIIISTER NEUGIT Member This Topic's Starter

    Joined:
    Nov 12, 2010
    Messages:
    17
    Likes Received:
    0
    I have the following code:

    Intent share = new Intent(Intent.ACTION_SEND);

    URL Iurl = null;

    try {
    Iurl = new URL(Data.imageURL);
    } catch (MalformedURLException e) {
    e.printStackTrace();
    }

    share.setType("image/jpeg");

    share.putExtra(Intent.EXTRA_STREAM, Uri.parse(Iurl.toString()));

    startActivity(Intent.createChooser(share, "Share image"));

    When I select to use GMail, it works. but if I choose anything else it gives some form of an error that says it failed. How do I fix this?
     

    Advertisement

Share This Page

Loading...