I think zip files can be sent via gmail. I've found the problem and is
about the path passed to the next method
works with
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File("/
sdcard/file")));
instead "file:///sdcard/file"

Cheers,

On Dec 5, 9:47 am, "Dexter&#39;s Brain" <[email protected]> wrote:
> 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 <[email protected]> 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, PedroFraca<[email protected]> 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 = {"[email protected]"};
> > >                     // 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 [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