hi
i am trying to send mail programatically by Using Android. i write
following code by Using Intent but it shows Error "Noapplication can
perform this action". plz tel me any Extra setting are required or wt
is the problem
My Code is

protected void sendEmail() {
                // Setup the recipient in a String array
                String[] mailto = { emailTo.getText().toString() };
                //String[] ccto = { "som...@somedomain.com" };
                // Create a new Intent to send messages
                Intent sendIntent = new Intent(Intent.ACTION_SEND);
                // Add attributes to the intent
                sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);
                //sendIntent.putExtra(Intent.EXTRA_CC, ccto);
                sendIntent.putExtra(Intent.EXTRA_SUBJECT, emailSubject.getText()
                                .toString());
                sendIntent.putExtra(Intent.EXTRA_TEXT, 
emailBody.getText().toString
());
                // sendIntent.setType("message/rfc822");
                sendIntent.setType("text/plain");
                startActivity(Intent.createChooser(sendIntent, "MySendMail"));
        }
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to