10-25-2009 01:50 AM
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.
10-25-2009 08:22 AM
the call looks correct. ![]()
Here is a good document about it:
10-25-2009 09:13 AM
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"));
10-25-2009 12:50 PM
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.
10-25-2009 05:34 PM
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. ![]()
10-25-2009 05:37 PM
Thanks for the response John. Is that an issue with just the emulator or even its like this on the device?
10-25-2009 06:11 PM
i think it's an issue of both the simulator and the device.
10-25-2009 06:14 PM
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?
10-26-2009 03:21 AM
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);
10-26-2009 01:45 PM
Thanks a lot for the response Martin.
This does not work on JDE 4.3.
--MB.