enter code hereI am using mail composing option from my app i.e when i click on submit button i am navigating the user to the mail composing page.
Now i want to return to a specific activity on either case
1- on success full send . navigate to activity2
2- on Discard navigate to activity1
how can i do that
the code is following
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 :"));
I think, if you use
You can always navigate to your activity (Land at
onActivityResult()of your current Activity) from which you have started the above activity either its success or when you press back key from started activity.