-1

I have a question about how to send email in android.

My app creates an xml file, and I want the application to send this file via email.

I have a button to send mail, but I don't know attach the file. I have been reading this tutorial and the send mail function of my app is similar: http://mobile.tutsplus.com/tutorials/android/android-email-intent/

My second problem is finding a way to get an email address from the address book. Anyone have a tutorial on this?

Micah Hainline
  • 14,367
  • 9
  • 52
  • 85
user721399
  • 159
  • 1
  • 9
  • 1
    possible duplicate of [How can I attach an image file in email?](http://stackoverflow.com/questions/3709694/how-can-i-attach-an-image-file-in-email) – Peter Knego May 04 '11 at 18:06

2 Answers2

10

This has been discussed many times already.

Community
  • 1
  • 1
Peter Knego
  • 79,991
  • 11
  • 123
  • 154
0

How to attach a file to mail in android phones

hold on a second on a file which you want to send it will pop up options like send via, Bluetooth,mail,wifi etc. select mail if you have connected with the internet it will ask the mail options select a configured mail like gmail it will automatically attach to mail.