I have an Activity
and I start an appliction chooser with startActivity
.
Question: How can I wait with the finishing the parent activity until the user has selected a preferred mail app?
Uri uri = Uri.parse("mailto:" + "someone@mail.com")
.buildUpon()
.appendQueryParameter("subject", "subject")
.appendQueryParameter("body", "body")
.build();
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, uri);
startActivity(Intent.createChooser(emailIntent, "chooser Title"));
finish();