2010-11-09 67 views
0

如果從MenuItem的run方法調用它,下面的代碼是否會導致問題? 我的問題是,MenuItem是否是UiEvent線程的一部分,以及是否可能有一些副作用。Blackberry來自MenuItem的屏幕導航

//Allow back and forward navigation 
    void openScreen(eSafeScreen nextScreen) { 
     //remains on current screen if next screen does not exists 
     if (nextScreen != null) { 
      nextScreen._prevScreen = this; 
      UiApplication.getUiApplication().pushScreen(nextScreen); 
      UiApplication.getUiApplication().popScreen(this); 
     } 
    } 

回答