I'm using the following code :
Intent sendMailIntent = new Intent(Intent.ACTION_SEND);
sendMailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.Share_Mail_Subject));
sendMailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.Share_Mail_Text));
sendMailIntent.setType("text/plain");
startActivity(Intent.createChooser(sendMailIntent, "Email / SMS / Tweet ?"));
Then I would like to be able to make the difference between: 1. my user has indeed sent en email/SMS ... OR 2. my user has in fact pushed the BACK BUTTON ... and didn't send anything.
Is there a way to make this difference ?
=> Should I launch the activity with startActivityForResult ? and catch the requestCode/resultCode with onActivityResult ...
=> What king of resultCode should I expect ? how to grab it correctly ? Where should I put these lines of code ? Any snippet of code would be very helpful here.
thanks in advance.
Hub