1. Check out our companion app, Forums for Android! Download from Google Play

Email Multiple Images

Discussion in 'Application Development' started by vgerao, Sep 27, 2010.

  1. vgerao

    vgerao New Member
    Thread Starter
    5

    Sep 27, 2010
    1
    0
    5
    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
     

    Advertisement

Share This Page

Loading...