The following code previously worked on an Atrix 2 4G. After
upgrading to 2.3.6, createchooser no longer presents any mail choices
and the e-mail is not sent.
Logcat contains no errors. Any ideas why this is not providing Send
choices as it previously did?
final Intent emailIntent = new
Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("message/rfc822");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new
String[]{"[email protected]"});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
"ANDROID Entry");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,
mailbuilder.toString());
emailIntent.putExtra(android.content.Intent.EXTRA_CC,new
String[]
{"[email protected]"});
try{
startActivity(Intent.createChooser(emailIntent, "Send mail
from. . .
"));
}
catch(Exception echoice){
Log.e("CHOOSER PROBLEM", echoice.toString());
}
--
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