Monday, 7 January 2013

How To Send Email In Android

Write below code into your activity file for send Email from Android Application.

Java Code:-


Intent mAndroidEmailIntent = new Intent (android.content.Intent.ACTION_SEND);
String aEmailList[] = { "android@gmail.com","android@yahoomail.com" };
mAndroidEmailIntent.putExtra (android.content.Intent.EXTRA_EMAIL, aEmailList);
mAndroidEmailIntent.putExtra (android.content.Intent.EXTRA_SUBJECT, "Mail Subject");
mAndroidEmailIntent.setType ("plain/text");
mAndroidEmailIntent.putExtra (android.content.Intent.EXTRA_TEXT, "Email From My Android App");
startActivity (mAndroidEmailIntent);

Enjoy :-)

Don’t forget to provide feedback or follow this blog, if you find this blog is useful.

1 comment:

  1. Emergency Call (inkl. Video & Audio) (android) - This is an application that you activate before you might get into an emergency situation (i.e. before walking alone through a tunnel). Then you have to press a button (or a finger on the screen...) and as soon as you lift the finger from that button/screen, the device will send an emergency call to a friend/the police and send the current position, sound and video to another device or to an internet portal.

    can you help me

    ReplyDelete