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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
Developer
mb1
Posts: 306
Registered: ‎05-26-2009

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.

Please use plain text.
Developer
dpreussler
Posts: 212
Registered: ‎07-18-2008

Re: Launching built in email application.

the call looks correct. :smileysad:

 

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/
Please use plain text.
Developer
johnbibs
Posts: 903
Registered: ‎02-07-2009
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"));

 

 

Please use plain text.
Developer
Developer
mb1
Posts: 306
Registered: ‎05-26-2009

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.

Please use plain text.
Developer
johnbibs
Posts: 903
Registered: ‎02-07-2009
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. :smileyhappy:

Please use plain text.
Developer
Developer
mb1
Posts: 306
Registered: ‎05-26-2009

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?

Please use plain text.
Developer
johnbibs
Posts: 903
Registered: ‎02-07-2009
My Carrier: Globe Telecom

Re: Launching built in email application.

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

Please use plain text.
Developer
Developer
mb1
Posts: 306
Registered: ‎05-26-2009

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?

Please use plain text.
Developer
martijnbrinkers
Posts: 155
Registered: ‎02-18-2009

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);

 

 

 

Please use plain text.
Developer
Developer
mb1
Posts: 306
Registered: ‎05-26-2009

Re: Launching built in email application.

Thanks a lot for the response Martin.

This does not work on JDE 4.3.

 

--MB.

Please use plain text.