It seems there just is no alternative method. This is the code inside
the Email app:

if (Intent.ACTION_SEND.equals(intent.getAction()) && intent.hasExtra
(Intent.EXTRA_STREAM)) {
       String type = intent.getType();
       Uri stream = (Uri) intent.getParcelableExtra
(Intent.EXTRA_STREAM);
       if (stream != null && type != null) {
            if (MimeUtility.mimeTypeMatches(type,
Email.ACCEPTABLE_ATTACHMENT_SEND_TYPES)) {
               addAttachment(stream);
            }
        }
   }

There is no loop and nothing else that could take care of multiple
attachments.

Maybe your Application can create a Zip-Archive with all the files and
add this as an attachment?

On 29 Jul., 06:34, SrilankanKK <[email protected]> wrote:
> On Jul 28, 8:50 am, Jack Ha <[email protected]> wrote:
>
>
>
> > As far as I know, it only supports one attachment as Intent.putExtra()
> > will replace any existing value for the given key.
>
> > --
> > Jack Ha
> > Open Source Development Center
> > ・T・ ・ ・Mobile・ stick together
>
> > The views, opinions and statements in this email are those of
> > the author solely in their individual capacity, and do not
> > necessarily represent those of T-Mobile USA, Inc.
>
> > On Jul 28, 4:31 am, SrilankanKK <[email protected]> wrote:
>
> > > Hi....
>
> > > i have put this question on several time on the Developer forum. But i
> > > didn't get any answer.
>
> > > I build an email application using intents. I can send a email with
> > > one image attachment. I tried to attach multiple images using "putExtra
> > > ()" method.But it still send only a single image if any of You know a
> > > solution plz leave  a reply
>
> > > Thanks
>
> Ya i think so, but is there any alternative method to do this.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to