Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Contributor
dsokhan
Posts: 24
Registered: 07-06-2010
My Carrier: MTS
Accepted Solution

E-mails from native client on Playbook

Hi community,

 

In light of the latest OS2.0 update, I would like to raise the painful question about Playbook native e-mail client capabilities. Is there a way to integrate sharing through e-mail from AIR application? Is there some API?

 

Ported Android application with sharing via e-mail works perfectly:smileyhappy:

And I realy want to add this functionality to air playbook app.

 

Thank you.

Please use plain text.
Developer
steve_web
Posts: 160
Registered: 05-07-2009
My Carrier: Telus

Re: E-mails from native client on Playbook

I haven't tested this, but as a potential workaround (should there not be a native/AIR way to do this)... an HTML mailto: link works to launch the Messages app... so you might be able to use navigateToURL to go to:  "mailto:someone@example.com?subject=Woah!&body=Everybody was Kung Fu fighting!"


PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
BlackBerry SmartPhone Apps: 5 Marbles
Please use plain text.
Contributor
dsokhan
Posts: 24
Registered: 07-06-2010
My Carrier: MTS

Re: E-mails from native client on Playbook

Its working!!!:smileyhappy:

 

Thank you very much!!!

 

Only one row of code: 

 

navigateToURL(new URLRequest("mailto:someone@example.com?subject=Woah!&body=Everybody was Kung Fu fighting!"));

 

It opens native e-mail client window like I need.

 

Thanks again.

Please use plain text.
Developer
zezke
Posts: 619
Registered: 12-12-2010
My Carrier: Mobile Vikings

Re: E-mails from native client on Playbook

I am trying to send a rather large text (logfile), but it seems like I am reaching the limit of the length of an URL. Any chance I could attach the logfile?

-------------------------------------------
Your like is much appreciated!
Apps: Mindmaps - Comics
Please use plain text.
Regular Contributor
Marker
Posts: 52
Registered: 01-12-2012
My Carrier: 3

Re: E-mails from native client on Playbook

Recall that you could with certain mailclients could get away with this

mailto:name@domain.com?Subject=SubjTxt&Body=Bod_Txt&Attachment=""file.txt""

Maybe it will work w Messenger as well??
Please use plain text.
Developer
zezke
Posts: 619
Registered: 12-12-2010
My Carrier: Mobile Vikings

Re: E-mails from native client on Playbook

Just tried that, no dice unfortunately...

-------------------------------------------
Your like is much appreciated!
Apps: Mindmaps - Comics
Please use plain text.
Developer
jtegen
Posts: 4,247
Registered: 10-27-2010
My Carrier: Verizon

Re: E-mails from native client on Playbook

"attachment" is not an official standard, but many clients support it. Try giving the full native file path to the file, just to make certain it is not supported.
Please use plain text.
Developer
zezke
Posts: 619
Registered: 12-12-2010
My Carrier: Mobile Vikings

Re: E-mails from native client on Playbook

Thank you for the suggestion jtegen, but it does not work either unfortunately. What is the maximum length of an URLRequest?

-------------------------------------------
Your like is much appreciated!
Apps: Mindmaps - Comics
Please use plain text.
Developer
jtegen
Posts: 4,247
Registered: 10-27-2010
My Carrier: Verizon

Re: E-mails from native client on Playbook

Not certain. From what I could find, it varied from 256 to 2048, so it might be implementation specific. Maybe try a POST request, but it is uncertain how the device is intercepting this information and the email client would check POST as well as GET information.
Please use plain text.