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