I have a little Problem: Every time when i add some pictures to a
email then they are empty (0 bytes)
I use a Intent:
emailIntent.setType("image/jpeg");
ArrayList<String> filePaths = new ArrayList<String>();
filePaths.add("file://sdcard/image1.jpg");
filePaths.add("file://sdcard/image2.jpg");
//has to be an ArrayList
ArrayList<Uri> uris = new ArrayList<Uri>();
//convert from paths to Android friendly Parcelable Uri's
for (String file : filePaths)
{
File fileIn = new File(file);
Uri u = Uri.fromFile(fileIn);
uris.add(u);
}
emailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en