I have a problem with setting type "message/rfc822" for intent to send e-mail with file attachment on Android emulator
First, "to avoid a lot of applications in select list for user's choice", use ACTION_SENDTO
and a mailto:
Uri
.
Second, what you are experiencing is not "a problem of Android emulator" nor "old APIs". You need 1+ applications that are capable of handling the ACTION_SEND
Intent
and a MIME type of message/rfc822
. There is no guarantee that any given device will support that combination, let alone any given emulator. Your code needs to handle that, just as if you use ACTION_GOBBLEDYGOOK
or a MIME type of thisis/sonotreal
or whatever.