So hängen Sie zwei oder mehr Dateien an die SEND-Aktion auf Android an
Ich würde zwei oder mehr Dateien mit ACTION_SEND unter Android als Auszug senden:
Intent (android.content.Intent.ACTION_SEND); emailIntent.setType ("plain / text"); emailIntent.putExtra (android.content.Intent.EXTRA_SUBJECT, "pokus"); emailIntent.putExtra (android.content.Intent.EXTRA_TEXT, "t"); emailIntent.putExtra (android.content.Intent.EXTRA_STREAM,
emailIntent.putExtra (android.content.Intent.EXTRA_STREAM, Uri.parse ("file: ///sdcard/file1.jpg");
emailIntent.putExtra (** android.content.Intent.EXTRA_STREAM, Uri.parse ("file: ///sdcard/file2.jpg");
startActivity (Intent.createChooser (emailIntent, "Send mail ..."));
Der Code funktioniert jedoch nicht mit GMail. Er hängt nur die letzte Datei an. Bitte helfen Sie Danke