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
Developer
Developer
Posts: 324
Registered: ‎05-26-2009
My Device: Not Specified

Launching built in email application.

Hi,

 

When I try to launch the email application to compose new EMAIL, it launches the  messae application to compose new SMS.

This is what I am doing:

 

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

 

 

Is there anything wrong with the call above?

 

--MB

 

PS:

I am unable to access the blackberry  knowledge center.

Developer
Posts: 212
Registered: ‎07-18-2008
My Device: Storm 9550

Re: Launching built in email application.

the call looks correct. Smiley Sad

 

Here is a good document about it:

http://docs.blackberry.com/en/developers/deliverables/8524/BlackBerry_Java_Application-5.0_Integrati...

 

If your problem was solved, please mark answer as "Accepted solution"
If your want to thank, click the "kudo" symbol
___________
visit me: http://mobilejavadevelopment.blogspot.com/
visit the Berlin BlackBerry Developer Group: http://berlinblackberrydevelopers.blogspot.com/
Developer
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: Launching built in email application.

What OS version are you using? 

 

This one works for me(OS 4.5):

 

 

   Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES,
                        new MessageArguments(MessageArguments.ARG_NEW,
                        "", "subject", "message body"));

 

 

Developer
Developer
Posts: 324
Registered: ‎05-26-2009
My Device: Not Specified

Re: Launching built in email application.

Thanks for the response.

 

I tried the call with 4 arguments. But it also creates the same screen("Compose SMS").

I am doing this on JDE 4.3.

 

According to the javadocs this should even work in JDE 4.2.

 

Could this be a setup issue?

 

--MB.

Developer
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: Launching built in email application.

I think this is a know issue of 4.3 and below. I read this somewhere but i can't find it. I'll try to look for it. Smiley Happy

Developer
Developer
Posts: 324
Registered: ‎05-26-2009
My Device: Not Specified

Re: Launching built in email application.

Thanks for the response John. Is that an issue with just the emulator or even its like this on the device?

Developer
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: Launching built in email application.

i think it's an issue of both the simulator and the device.

Developer
Developer
Posts: 324
Registered: ‎05-26-2009
My Device: Not Specified

Re: Launching built in email application.

I have seen applications running on 4.2 which launch an email  message compose window, with files optionally attached etc. How do they achieve this functionality?

Developer
Posts: 157
Registered: ‎02-18-2009
My Device: Not Specified

Re: Launching built in email application.

You can create a message with attachments and open the message application with the new message.

 

 

Message message = new Message();

message.setSubject("some subject");

// add body, attachments etc.

MessageArguments messageArguments = new MessageArguments(message);

Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, messageArguments);

 

 

 

Developer
Developer
Posts: 324
Registered: ‎05-26-2009
My Device: Not Specified

Re: Launching built in email application.

Thanks a lot for the response Martin.

This does not work on JDE 4.3.

 

--MB.