From my application I allow the user to send a message by email.
I use a code like that
Intent i = new Intent(Intent.ACTION_SENDTO);
i.setData(Uri.parse("mailto:"));
i.putExtra(Intent.EXTRA_EMAIL , new String[]{Settings.getLastEmail()});
i.putExtra(Intent.EXTRA_SUBJECT, context.getString(R.string.settings_DeviceID));
startActivity(i);
taken from how can I send emails from my android application.
At this point a gmail window appears and the user can enter the address in the "to" recipient.
I would like to retrieve the entered address so that I can show it as default "to" recipient the next time the user sends an email.
Is there a way to retrieve the entered address from gmail called with
startActivity
?