I create an app in which I have to send mail from any of the mail clients available. Now I have to perform some tasks when the user comes back to my application from mail client. But I have no idea how to track the user when he came back from the mail client.
I also want to that- it is possible to track that does user send mail or not when he came back to my application.
the code I wrote for sending mail-
Intent mailIntent = new Intent(Intent.ACTION_SEND);
mailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"kavara.tech@gmail.com"});
mailIntent.setType("message/rfc822");
mailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
mailIntent.putExtra(Intent.EXTRA_TEXT, message);
startActivity(Intent.createChooser(mailIntent, "Choose an Email client..."));