android - How can I create chooser Intent to choose from gmail app, yahoo mail app or browser? -
i tried search on google didn't find appropriate answer.
i want click textview
, show dialog allows user choose optional email.
suggestion? in advance
a better option use following, open applications provide mail facility , not apps can share data.
intent emailintent = new intent(intent.action_view); uri data = uri.parse("mailto:?subject=" + "subject" + "&body=" + "body" + "&to=" + email_id); emailintent.setdata(data); startactivity(emailintent);
"subject"
subject of mail, "body"
content of mail, , "email_id"
id of receiver of mail.
you can keep subject , body , email_id empty if want user fill in spaces.
Comments
Post a Comment