• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Email Multiple Images

vgerao

Lurker
I am trying to mail more than one image. and i saved images in /mnt/sdcard/MyFolder/subFolder/

i am creating uri for this path using Uri.fromFile(file); and added this uri an ArrayList.

File file = new File("/mnt/sdcard/MyFolder/subFolder/1284965986728.jpg")
Uri uri = Uri.fromFile(file);
arrayList.add(uri);

actually the above code is inside a loop for adding all images uri to an arraylist.

and this arrayList is used while invoking mail intent.

mailIntent.setAction(Intent.ACTION_SEND_MULTIPLE);
mailIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, selectPhotoUri);

But images are not attached to mail.

i am missing anything. how to attach multiple imges which are saved in our predefined folders.

please help me in this issue


Thanks

Regards
Venkat
 
Back
Top Bottom