Getting the recepient count from email sent in And

2019-06-08 18:14发布

问题:


I'm launching the email program in Android from my app, using the following code...

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("message/rfc822");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Test subject");
sendIntent.putExtra(Intent.EXTRA_TEXT, "Hello World!");
startActivityForResult(Intent.createChooser(sendIntent, "Select email application."), INTENT_REQUEST_SEND_EMAIL);

In the called OnActivityResult(), is it possible to get the number of recepients the user has chosen to send the email to?

Thanks,
Rajath

回答1:

That action does not support startActivityForResult(), sorry.