The code sample below will help you understand “
How To Send Email In Android” using
EmailIntent in android. In android we can use Intent.ACTION_SEND to
call an existing email client to send an Email. If no email clients are
configured then,android system displays
“No application can perform this action” error.
Sending Email In Android example
Here is my layout as shown in the screenshots below
activity_main.xml
In my code example, I have used ActionBar commands for send and clear option.
main_menu.xml
Now, check out the activity code
MainActivity.java
Nenhum comentário:
Postar um comentário