Javatpoint Logo
Javatpoint Logo

How to send email in android using intent

We can easily send email in android via intent. You need to write few lines of code only as given below


Example of phone call in android

activity_main.xml

Drag the 2 EditTexts, 1 MultiLine EditText, 3 TextViews and 1 Button from the pallete, now the activity_main.xml file will like this:

File: activity_main.xml

Activity class

Let's write the code to send email via intent.

File: MainActivity.java







Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials