I'm trying to send an email from my custim app. I'm using Cyanogen 6
(Android 2.2) myTouch 3G (HTC Magic). When I use the following code,
try to envoke the email client (configued for hotmail/gmail) I get
nothing. As if, the activity is not even started.
Intent emailIntent = new
Intent(android.content.Intent.ACTION_SEND);
String aEmailList[] =
{ "[email protected]","[email protected]" };
String aEmailCCList[] =
{ "[email protected]","[email protected]"
String aEmailBCCList[] =
{ "[email protected]","[email protected]" };
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,
aEmailList);
emailIntent.putExtra(android.content.Intent.EXTRA_CC,
aEmailCCList);
emailIntent.putExtra(android.content.Intent.EXTRA_BCC,
aEmailBCCList);
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My
subject");
emailIntent.setType("text/plain");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "My message
body.");
Email.this.startActivity(Intent.createChooser(emailIntent, "Send
mail..."));
Am I missing any setting and/or is it because I have rooted my phone
and using the cyanogen rom? Any help would be greatly appreciated.
--
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