, , , Intent.ACTION_SEND_MULTIPLE Intent.ACTION_SEND . Google ( : , , "" . SO, , . , , ).
, Uris Intent.putParcelableArrayListExtra Intent.putExtra Uri ArrayList.
:
public void shareBackup(String path) {
String to = "YourEmail@somewhere.com";
String subject = "Backup";
String message = "Your backup is attached";
Intent email = new Intent(Intent.ACTION_SEND_MULTIPLE);
email.putExtra(Intent.EXTRA_EMAIL, new String[] { to });
email.putExtra(Intent.EXTRA_SUBJECT, subject);
email.putExtra(Intent.EXTRA_TEXT, message);
File f = new File(path);
email.putParcelableArrayListExtra(Intent.EXTRA_STREAM, new ArrayList<>(Arrays.asList(Uri.fromFile(f))));
email.setType("text/*");
startActivity(Intent.createChooser(email, "Send"));
}