在此处输入代码我正在使用我的应用程序中的邮件撰写选项,即当我单击提交按钮时,我正在将用户导航到邮件撰写页面。现在我想在任何一种情况下返回特定活动 1- 成功完整发送。导航到活动 2 2- on Discard 导航到活动 1
我该怎么做代码如下
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[] {
"sales@fastpkg.com"});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Placing an Order");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "This is a
sample mail..");
emailIntent.setType("text/plain");
startActivity(Intent.createChooser(emailIntent, "Send mail client :"));