This doesn't seem to work for regular text file. I have tried giving
mime types of "*/*", "text/plain" etc.

Anyone knows how to attach text files using Gmail? Doesn't even work
from Gmail app.

On Dec 12 2008, 12:08 pm, Peli <peli0...@googlemail.com> wrote:
> > I'd love to see that one extra line in your example that shows how to
> > add an image fileattachmentwith the image file stored on the SD
> > card. :-)
>
> Oh, sorry, you said image.
>
> sendIntent.setType("image/png");
> sendIntent.putExtra(Intent.EXTRA_STREAM, "file:///sdcard/
> mygirlfriend.png");
>
> I'm sure the next question is how to have both, subject andattachment, but 
> I'll leave this as an exercise to the reader :-)
>
> Peli
--~--~---------~--~----~------------~-------~--~----~
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