Hello everyone,
I am a newbie and i have a push application that works as a system module and runs at start-up. When i push a message form server I want to see a pop up screen on blackberry (suppose that the main screen of bb is opened.we are not in any application.) When i try this i get en error like this: PushModalScreen called by a non-event thread. Do you have any solutions for this?
Hi
Thanks for help.I tried it but i gat the same error. I am writing the code below. I wonder if i did something wrong.
UiApplication.getUiApplication().invokeLater(new Runnable(){
public void run(){
int trigger = NotificationsConstants.MANUAL_TRIGGER;
long timeout = -1;
long _eventIdGenerator=0;
Event2 e = new Event2(NotificationsDemo2.NOTIFICATIONS_ID_1, ++_eventIdGenerator, 500, timeout, trigger);
e.fire();
Dialog.ask(Dialog.D_OK,"Message");