I guess, gmail doesn't support zip files. You can try sending the zip
with any other mail client (of course with some other provider as
well) and check.

GMail doesn't allow you to send zip files from the browser too..

Thanks and Regards,
Kumar Bibek

http://tech-droid.blogspot.com

On Dec 4, 10:50 pm, Dustin <dustin.bre...@gmail.com> wrote:
> I had a similar issue and found that the file was not readable by the
> mail app (running as a different user).  Is /sdcard/test.zip world
> readable when viewed via the shell?
>
> -dustin
>
> On Dec 4, 4:14 am, Pedro Fraca <pedro.fr...@gmail.com> wrote:
>
> > Hi  All.
>
> > I'm trying to send a zip file as mail attachment, in the ADP1 when
> > mail is composed it shows the zip file as attached but don't sends it.
> > This is the code I'm using:
>
> >                     // Setup the recipient in a String array
> >                     String[] mailto = {"supp...@mail.org"};
> >                     // Create a new Intent to send messages
> >                     Intent sendIntent = new Intent(Intent.ACTION_SEND);
> >                     // Add attributes to the intent
> >                     sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> >                     sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);
> >                     sendIntent.putExtra(Intent.EXTRA_SUBJECT,"test");
> >                     sendIntent.putExtra(Intent.EXTRA_TEXT,"test");
>
> >                     sendIntent.putExtra(Intent.EXTRA_STREAM, 
> > Uri.fromFile(new File
> > ("file:///sdcard/test.zip")));
> >                     sendIntent.setType("application/zip");
>
> >                     
> > this.myContext.startActivity(Intent.createChooser(sendIntent,
> > "Email:"));
>
> > Cheers,

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to