I am developing an app with email sharing. The code I am using to launch the intent is standard Android ie:
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, title);
emailIntent.setType("application/octet-stream");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Hello");
context.startActivity(emailIntent);
The thing is, this launches the Gmail app in a fullscreen which I don’t want. Can I make it a dialog similar to how iOS does below? If not, has it been written already, or do I need to write it myself.

Thanks
You could create a Dialog with this layout to get the data from the user and send the actual email using the avaMail API as shown in the post
Sending Email in Android using JavaMail API without using the default/built-in app