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
barees63
Posts: 122
Registered: ‎07-26-2008
My Device: 8320, 9500, 9700

Why does ARG_NEW invoke SMS instead of email on certain devices?

Hi there,

 

My application uses the following generic code to invoke the email compose screen:

 

MessageArguments ma = new MessageArguments(MessageArguments.ARG_NEW,bruce@nowhere.com,"A Test Message","Hello World"); Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, ma);

 

 

This code works fine on most devices but on some devices (for example 7250 running OS 4.1 and 8703e running OS 4.2) it opens an SMS message instead.  This is repeatable on both the actual devices and on the simulators.

 

Is there another, more robust, method of invoking the email application?

 

Thanks!

Bruce

 

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,685
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Why does ARG_NEW invoke SMS instead of email on certain devices?

What version of the BlackBerry JDE are you using to build the application?  Are the BlackBerry handhelds you are testing with configured for email service?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
barees63
Posts: 122
Registered: ‎07-26-2008
My Device: 8320, 9500, 9700

Re: Why does ARG_NEW invoke SMS instead of email on certain devices?

So far I can repeat this everytime using the devices mentioned with JDE 4.1.0.185 and 4.2.1.141, the simulators are able to send email via the MDS/Email simulator.  My users who are reporting this on the real devices do have email services.

 

Cheers,

Bruce

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,685
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Why does ARG_NEW invoke SMS instead of email on certain devices?

I haven't been able to reproduce this.  Can you provide a larger sample?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
barees63
Posts: 122
Registered: ‎07-26-2008
My Device: 8320, 9500, 9700

Re: Why does ARG_NEW invoke SMS instead of email on certain devices?

Here is a complete application, I've also included screenshots showing the 8703-JDE simulator and the 8800-JDE for comparison, screens are from JDE 4.2.141.

 

package Emailtest; import net.rim.device.api.ui.*; import net.rim.device.api.ui.container.*; import net.rim.blackberry.api.invoke.*; class EmailTest extends UiApplication { EmailTestScreen scr; public static void main(String[] args) { EmailTest app=new EmailTest(); app.enterEventDispatcher(); } EmailTest() { scr=new EmailTestScreen(); pushScreen(scr); } } class EmailTestScreen extends MainScreen { public EmailTestScreen() { super(); MessageArguments mArgs = new MessageArguments(MessageArguments.ARG_NEW,"bruce@somewhere.com","Test Email","This is a test email"); Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, mArgs); } }

8703e

 

8800

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,685
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Why does ARG_NEW invoke SMS instead of email on certain devices?

Thanks, I was able to reproduce this.  I have also verified that it works correctly in the BlackBerry 8703e simulator included in the version 4.5.0 BlackBerry JDE so it appears that this issue was corrected.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.