I\'m trying to share an image I have previously saved on disk, sending an Intent.ACTION_SEND
. The problem is that I can\'t find a way to be compatible with diff
this code is more easy
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setData(Uri.parse("mailto:"));
intent.putExtra(intent.EXTRA_EMAIL,"XXXXX@XXXX.com");
intent.putExtra(intent.EXTRA_SUBJECT, "XXXXX");
intent.putExtra(Intent.EXTRA_TEXT, "XXXXX");
intent.setType("message/rfc822");
chosser = Intent.createChooser(intent, "Enviar Email");
intent.putExtra(intent.EXTRA_STREAM, uri);
startActivity(chosser);