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

Reply
Contributor
Posts: 28
Registered: ‎06-02-2010
My Device: 9530
My Carrier: ATnT
Accepted Solution

Staring native Message application

Hi,

 

How do I start the native Message application in email mode from another application with the To field pre-filled email address. Is there a Invoke.invokeApplication() way of doing it?

 

TIA

Developer
Posts: 2,268
Registered: ‎07-08-2009
My Device: various
My Carrier: various

Re: Staring native Message application

 

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

 

 

Message message = new Message();
message.setSubject(...);
message.setContent(...);
message.addRecipient(Message.RecipientType.TO, ...);
message.addRecipient(Message.RecipientType.CC, ...);
message.addRecipient(Message.RecipientType.BCC, ...);
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(message));

 

 

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!
Contributor
Posts: 28
Registered: ‎06-02-2010
My Device: 9530
My Carrier: ATnT

Re: Staring native Message application

Just one question:

How are you doing...

 

Message message = new Message();

 

 

In which platform version you can do a new Message(). I am doing it in 4.5 and it is not supported.

 

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

Re: Staring native Message application

Make certain you are importing the RIM mail message, not the javax.wireless.Message.

 

They are both in the javadocs.

 

 

Contributor
Posts: 28
Registered: ‎06-02-2010
My Device: 9530
My Carrier: ATnT

Re: Staring native Message application

Thanks. You guessed right I have mixed it up with javax.

 

I will try your way now.