1. Check out our companion app, Forums for Android! Download from Google Play

"Sorry, you can't send this image"

Discussion in 'Application Development' started by MIIISTER NEUGIT, Nov 19, 2010.

  1. MIIISTER NEUGIT

    Thread Starter
    15

    Nov 12, 2010
    17
    0
    15
    Xbox 360 Game Developer
    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...