Q:

Send PDF in e-mail without saving to phone (android)

I'd like to be able to create a PDF from a bytestream/byte array, then send it as an e-mail attachment without requiring it to be stored on the SD card/internal storage of the phone.
This is what I'm doing right now:
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("text/html");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + file.getAbsolutePath()));

Where file is a File object that contains the location of the PDF I'm trying to send.
Is there any way to take the byte array and attach it as a PDF and send it immediately?

A:

Is there any way to take the byte array and attach it as a PDF and send it immediately?

Only if you write your own email client and embed it in your app.

