04-03-2012 12:20 AM
My application type is "Library", i new one class named "Appinit" extends UiApplication in my application ,
in the Appinit i push a pushGlobalScreen, which is the a PopupScreen .and in the PopupScreen i do this code
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(m)); // m is a TextMessage,which have the Address ApplicationManager appMan = ApplicationManager .getApplicationManager(); ApplicationDescriptor current = ApplicationDescriptor .currentApplicationDescriptor(); int i = appMan.getProcessId(current); appMan.requestForeground(i);
it can invoke the message list , But when press Escape , this UiApplication named Appinit is colsed,
i try Overrides requestClose(),make return false, but still don't work .
someone tell me how i can do .
04-03-2012 03:06 AM
04-03-2012 03:55 AM
Sorry I have a whole load of questions, because to me, the scenario you have described is confusing.
If you have a Library, how do you actually start your UiApplication. Do you enterEventDispatcher()? If you are starting a UiApplication, then why are you defining a Library?
When you push the PopupScreen, why are you making it a Global screen?
When you run a GlobalScreen, your UiApplication does not run, so therefore there is no interaction between your UiApplication and the PopupScreen. So I don't think the PopupScreen is closing your UiApplication.
In summary, I am really asking for clarification of this statement:
"But when press Escape , this UiApplication named Appinit is closed"
How do you know this is happening?
04-03-2012 09:30 AM
04-03-2012 12:38 PM
Sorry some more questions....
1) "I make new thread to open the uiappplication enterEventDispatcher()"
Really - a new Thread? Can we see this code?
2) popupScreen when i listen the sms coming...
How do you listen for an SMS message?