07-26-2008 05:22 AM
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
07-28-2008 09:25 AM
07-28-2008 03:52 PM
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
07-29-2008 09:15 AM
07-30-2008 03:55 AM
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@s
omewhere.com","Test Email","This is a test email"); Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, mArgs); } }


07-30-2008 11:28 AM