Android opening Gmail programatically

Open Gmail and compose mail template which user can send.



Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
"mailto", "testv@gmail.com", null));
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "text subject");
mContext.startActivity(Intent.createChooser(emailIntent, null));

Comments