问题
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.
来源:https://stackoverflow.com/questions/4469055/getting-the-recepient-count-from-email-sent-in-android