View Single Post
Old 04-14-2008, 12:01 AM   #5
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Default

I am declaring the class as:

private final class OnDemandDialog extends PopupScreen {
...............
}

I am pushing the screen like this:

Code:
   onDemandDialog=new OnDemandDialog();
   //this.onDemandDialog=onDemandDialog;
   UiApplication.getUiApplication().pushScreen(onDemandDialog);

inside callIncoming event

Code:
UiApplication.getUiApplication().invokeLater(new Runnable()
{
      public void run()
      {
           synchronized(UiApplication.getEventLock()){
                  onDemandDialog.close();
           }
      }
});

then i am getting that exception
Offline   Reply With Quote