Email Composer For Android

436 views
Skip to first unread message

Pacer31

unread,
Mar 31, 2011, 10:02:49 AM3/31/11
to phonegap
Hi..

Hopefully you can give some suggestions to the following. My goal is
to be able to send an email with a file attachement. The app I have
created with PhoneGap allows the user to request reports and save them
to their phone On the phone I store the reports users run as xml.
When the user wants to view a report stored on the phone I parse the
xml and display it on the phone; using css/html. I receive and store
xml just to reduce the amount of data going over the line.

I want to create an option on the app that will be able to send that
report.. So I was thinking...parse the xml into an html file; but
this time save the file. Open email (Android app)...have the file
attached and then allow the user to select his contact and then send
the email.

1. I was thinking of using the Email Composer Plugin. But from what
I see; it's only available for iPhone. Is there one out there for
Android or do I need to build my own?

2. I also thought about using <href "mailTo:> tag. Does this only
work on an actual phone...I try using it on the emulator but get a
<Unsupported action> error.

3. The file I want to send is pretty much an html report. Is it best
to send it as an attachement or just include the html within the body
of the email. Maybe using the mailTo tag. But that doesn't seem to
make sense

Thanks for any advice.

Julian Avram

unread,
Apr 1, 2011, 9:32:58 AM4/1/11
to phonegap
Mailto:// works great but I don't think it's supported out of the box.
In a project I was working on, I had to modify droidgap.java and
add support for mailto://. In my opinion mailto and market links
should be supported out of the box without having to download the
library source, making changes and then apply the new library.

Julian

Simon MacDonald

unread,
Apr 11, 2011, 3:58:50 PM4/11/11
to phon...@googlegroups.com
Hey Julian,

I was surprised to hear that the mailto: link did not work for you.
Bryce checked in a fix for 0.9.4 to support market: links and have all
other uri's invoke their default action. What changes did you need to
do to DroidGap to make mailto: links work?

I tested it on my Samsung Galaxy and it worked just fine. Just trying
to get to the bottom of this.

Simon Mac Donald
http://hi.im/simonmacdonald

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>

Reply all
Reply to author
Forward
0 new messages