but the code: startActivity(Intent.createChooser(email_intent, "Send mail...")); just popup a chooser(to choose via email or sms), not email composer. How to popup email composer immediately?
On Aug 28, 9:48 pm, Liviu Ungureanu <smartli...@gmail.com> wrote: > 2009/8/28 Desu Vinod Kumar <vinny.s...@gmail.com> > > > > > U can find the source in email client example...... > > > On Fri, Aug 28, 2009 at 5:24 PM, kapil.k <kapnk...@gmail.com> wrote: > > >> Is there any sample code about how to send email in android?i want to > >> design email application for fix address by modifying it. > > > -- > > Regards > > ------------------- > > Desu Vinod Kumar > > vinny.s...@gmail.com > > 09176147148 > > > > Hi! > > Here you have an example.. > > final Intent email_intent = new Intent(android.content.Intent.ACTION_SEND); > email_intent.setType("plain/text"); > email_intent.putExtra(android.content.Intent.EXTRA_EMAIL, new > String[]{item.getEMail()}); > email_intent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject"); > email_intent.putExtra(android.content.Intent.EXTRA_TEXT, " "); > ShowItemDetailsActivity.this.startActivity(Intent.createChooser(email_intent, > "Send mail...")); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---