@ Ulf Dittmer , Hardik Trivedi
See now I used the following code
--------------------
public void sendEmail(Context context,String subject,String body)
{
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("text/plain");
String mailId="
abc.gmail.com";
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{mailId});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,body);
try{
context.startActivity(Intent.createChooser(emailIntent, "Send Mail..."));
finish();
}catch (android.content.ActivityNotFoundException ex) {
Log.v("BBUtils", "Exception while sending email. "+ex);
}
}
-------------------
called text as
String mySubject="Testmail";
String myBodyText="This is simple
test body";
sendEmail(ContactUs.this, mySubject, myBodyText);
and i will see the output as in attachments
in that i got the subject whatever i passed
but I don't get the email Id Prepopulated as body to whom i am sending the mail.
See the Attachments