• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps "Sorry, you can't send this image"

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?
 
Back
Top Bottom