04-21-2009 05:45 PM
UiEngine ui = Ui.getUiEngine(); ui.pushGlobalScreen( popupScreen, 999, 0 );
I have a button on this screen that should open a new message in the messaging app. (actually a reply to the received message, but I also tried with a new message). Unfortunately, when I do the following call from within in the button's fieldChanged event
Invoke.invokeApplication( APP_TYPE_MESSAGES, new MessageArguments( newMessage ) )
nothing happens. No messages in the log.
Invoke.invokeApplication( APP_TYPE_MESSAGES, MessageArguments( MessageArguments.ARG_DEFAULT ) );
I tried changing my application to a UiApplication and wrapping the invokeApplication in an invokeLater to no avail.
Solved! Go to Solution.
04-21-2009 05:51 PM
It may be that the global-modal screen is actually blocking the display of the message reply screen.
Does the messages app pop up after you close your dialog?
04-21-2009 05:54 PM
No, even after closing the global screen nothing happens. I already tried closing the screen right before doing the invoke.
The strange thing is that the general invoke with no message to open the inbox works. The inbox gets shown right away. I still have to close my global screen but it works.
04-21-2009 08:16 PM
One other suggestion: I have found that certain apps, on certain OS levels, won't come to foreground unless the invoking app has the foreground.
Try call foreground() before the invoke.
12-01-2010 12:45 AM
Hey. Is there any known workaround for this? I'm invoking the Text message compose app, and trying to close or requestbackground for my app immediately. The Text message app closes or 'minimizes' with it.
MessageArguments ma = new MessageArguments(text); //// TextMessage arg assumes arg-new-sms and works if (!IsCloseItself()) globalBrady.requestBackground(); Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, ma); if (IsCloseItself()) System.exit(1);
Makes no difference if I put the requestBackground before or after the invoke line. I suppose I can't requestforeground for the Text message app?
12-09-2011 04:43 AM
(); Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments( MessageArguments.ARG_NEW));
got the same problem..
but i aldready add requestForeground();
still doesnt fix the problem