Dear Forum,
I have a problem using Invoke.invokeApplication in an application in a JDE 4.2.1 environment. My invocation aims at opening a new calendar item.
The following simple code is executed:
Code:
import net.rim.blackberry.api.invoke.CalendarArguments;
import net.rim.blackberry.api.invoke.Invoke;
import net.rim.device.api.ui.UiApplication;
public class OpenNewCalendarItem extends UiApplication {
public static void main(String[] args) {
new OpenNewCalendarItem().enterEventDispatcher();
System.exit(0);
}
public OpenNewCalendarItem() {
super();
Invoke.invokeApplication( Invoke.APP_TYPE_CALENDAR, new CalendarArguments( CalendarArguments.ARG_NEW ));
}
}
The new agenda item is correctly opened BUT after this opening, it is impossible for the end-user to exit the calendar application: it seems that the device (and simulator) has crashed.
Is it a defect? Is there a workaround?
Thank you again for your precious support,
Mikal Donini.