![]() ![]() Start the email "chooser", so a user with multiple email clients (Gmail, Yahoo, etc.) will be able to choose which client they want to use to send the message.It doesn't handle email attachments - I'll demonstrate that in a different example - but if you call it from within your Android app, it will do the following: StartActivity(Intent.createChooser(mailIntent, chooserTitle)) MailIntent.putExtra(Intent.EXTRA_TEXT, body) MailIntent.putExtra(Intent.EXTRA_SUBJECT, subject) If you need a simple Android 'send email' function/method, this source code should do the trick for you: public void sendEmailMessage(String subject, String body, String chooserTitle) ) ![]() Android FAQ: Can you share some source code for an Android send email method?
0 Comments
Leave a Reply. |