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

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete

Post a Comment