All working fine and the mail is also properly sending .But I cant return to the activity after sending mail.
Current screen history is false.I have used start Activity with result code also.But cant make it.
Could some one guide or provide some sample code it will be really usefull for me
bookByMail.setOnClickListener(new View.OnClickListener() {// sending mail details
@Override
public void onClick(View v) {
String mailId ="deepakmeccse26@gmail.com";
String sms = messageSummary.getText().toString();
String subject="Bottle Order";
Intent email = new Intent();
email.putExtra(Intent.EXTRA_EMAIL,new String[]{"bbbb@gmail.com","aaa@gmail.com"});
email.putExtra(Intent.EXTRA_CC, new String[]{"xxxx@gmail.com"});
email.putExtra(Intent.EXTRA_BCC, new String[]{"xxx@gmail.com"});
email.putExtra(Intent.EXTRA_SUBJECT, subject);
email.putExtra(Intent.EXTRA_TEXT, sms);
email.setType("sms/rfc822");
//email.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT);
startActivity(Intent.createChooser(email, "Choose an Email client :"));
}
});
dialog.show();
}
});
}