I am trying to open the Gmail email sending form directly at the click of a button, but this always shows a list of email sending options.
I do this to open the GMail form:
Intent emailIntent = new Intent( android.content.Intent.ACTION_SEND); String[] recipients = new String[]{"" , "" ,}; emailIntent.putExtra( android.content.Intent.EXTRA_EMAIL, recipients); emailIntent.putExtra( android.content.Intent.EXTRA_SUBJECT, "This is my text" ); emailIntent.putExtra( android.content.Intent.EXTRA_TEXT, ""); emailIntent.setType("message/rfc822"); startActivity( Intent.createChooser(emailIntent, "Send Email" ));
but this is not a discovery of the GMail form. What can I do to open the GMail form, please help.
Is there any way to do this?
Pari
source share