Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
                                String[] recipients = new 
String[]{"x...@gmail.com",
"",};
        
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, recipients);
        
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Test
Hello");
        
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "This is
email's message");
                                emailIntent.setType("text/plain");
                                startActivity(emailIntent);


The above snippet works fine for sending email hence i have already
entered the subject and text field ,is there any option to send email
at one click.In this case first i have to chose mail or message option
then it takes me to another screen where we can enter subject and
text .I need to skip those two steps ,any options


On Mar 2, 6:28 am, gganesh <ganesh....@gmail.com> wrote:
> Hi group,
> I need the user to login to gmail within my app ,as they login ,a hard
> coded message is send to the To address they have entered and return's
> back to my view .
> How is this possible in android
> ganesh

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to