Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch Android Default Email application through btn click

I posted this query here, but as usual, noone knows / no replies

http://www.anddev.org/viewtopic.php?p=41513#41513

How can I launch the android default mail application through the click of a button in my code?

I would also like to know, how this can be done to launch the contacts list also.

Any help in this regard is appreciated,

Regards, Rony

like image 624
Rony Avatar asked Feb 25 '26 08:02

Rony


1 Answers

How can I launch the android default mail application through the click of a button in my code?

Use an ACTION_SEND Intent.

(BTW, I apologize for the formatting of that blog post -- AndroidGuys keeps changing hosting providers, which screws up my posts)

I would also like to know, how this can be done to launch the contacts list also.

Use an ACTION_PICK Intent.

like image 144
CommonsWare Avatar answered Feb 28 '26 06:02

CommonsWare