Hello everyone,I get the usual "No applications can perform this action." Do
I need to install a mail program on the emulator? I have tried the K9 email
program, but I have not seen any changes. Are there any other programs out
there that could do the same? This is my code:

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 = "test123";

// Add attributes to the intent

sendIntent.setType("message/rfc822");

sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);

sendIntent.putExtra(Intent.EXTRA_SUBJECT, "somesubject");

sendIntent.putExtra(Intent.EXTRA_TEXT, emailBody);

startActivity(Intent.createChooser(sendIntent, "Email sent."));

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to