Is there a way to actually send the email without having the user choose an email client and hitting send? (without using a network connection and having a server do it on the back end)
On Jan 3, 7:11 pm, Abraham Lincoln <mehtabhave...@gmail.com> wrote: > 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 -~----------~----~----~----~------~----~------~--~---