Hello everyone,I am using this code to send an email (with no errors in
eclipse), but when I run it in the emulator, I get the "No applications can
perform this action." error.
String[] mailto = {prefemail};
// Create a new Intent to send messages
Intent sendIntent = new Intent(Intent.ACTION_SEND);
//Write the body of the Email
String emailBody = "";
// Add attributes to the intent
sendIntent.setType("message/rfc822");
sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "TrackMe Password");
sendIntent.putExtra(Intent.EXTRA_TEXT, emailBody);
startActivity(Intent.createChooser(sendIntent, "Email sent."));
Do I need to install some mail app from it? I tried the K9 email app,
installed it with adb, but I don't see any changes. Do I need to do
something other than installing? Or is there another good program for it?
Thanks,
Noam.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---