Hi iam trying to send mail without pressing send button in default layout.
I tries this code
Intent emailIntent = new Intent(Intent.ACTION_SEND); emailIntent.setType("text/plain");
String[] recipients = new String[]{"yourmail@email.com", "",};
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, recipients);
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Sample mail");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "This is a sample mail..");
try {
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
}
i want to select the send button automatically when i select the gmail. pls help me.