Hi. I send an email from my app with this code:
final Intent emailIntent = new
Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("plain/text");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]
{"[email protected]"});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Body");
emailIntent.putExtra(android.content.Intent.EXTRA_STREAM, uri);
I'm trying to send an attachment (the 'uri' variable refers to a file
on the SDCard). When the email activity starts up, the attachment is
listed. But when I receive the email, it's not there.
I've tried various mime types, filenames, etc, but cannot solve
this... is there anything obvious I need to do?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en