MIIISTER NEUGIT
Newbie
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?
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?