Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
New Developer
Posts: 20
Registered: ‎12-29-2009
My Device: Not Specified

programatically use email client to open and edit a message object

I have an application that enumerates emails that have failed to send.  I would like to open up the message in the standard email application to allow them to edit and resend them.  I have the message object for each failed email.

 

Is there any way to do this?

 

I can send via my applicaiton fine, just wanted the ability to use the mail client on the phone.

 

TBAHR

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: programatically use email client to open and edit a message object

You can use Invoke to call the Email program from your app.

 

However, RIM has mysteriously neglected to provide a method to invokde this app to open/view a particular email.

 

See Invoke and ApplicationArguments in the javadocs.

 

New Developer
Posts: 94
Registered: ‎03-06-2009
My Device: Not Specified

Re: programatically use email client to open and edit a message object

[ Edited ]

Dont think there is any API to open a particular message but opening message program can be done using

 

 

 

                                Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES,                                                new MessageArguments(MessageArguments.ARG_NEW));

 

 --Krishn2

New Developer
Posts: 20
Registered: ‎12-29-2009
My Device: Not Specified

Re: programatically use email client to open and edit a message object

Thanks everyone for their responses.  I tried passing in MessageArguments() with a Message object but comes back with some ObjectGroup read only error.

 

Instead I was able to pass into MessageArguments(MessageArguments.ARG_NEW,recip,subject,body) and that prepopulated the fields.

 

I was hoping to use the original Message object but that does not seem to work as I was hoping.

 

Thanks again for everyones help.

 

TBAHR

New Developer
Posts: 20
Registered: ‎12-29-2009
My Device: Not Specified

Re: programatically use email client to open and edit a message object

I tried to fix the ObjectGroup read error by issuing ObjectGroup.expandGroup(message). but that did not seem to do anything.

 

Just FYI.