如果从 MenuItem 的 run 方法调用下面的代码,是否会导致问题? 我关心的是 MenuItem 是否是 UiEvent 线程的一部分以及是否可能有一些副作用。
//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);
}
}
最佳答案
是的,MenuItem 是 UI 线程的一部分。
不,您不必担心 UI 线程。
另请参阅:Thinking Blackberry - BlackBerry UI Threading - The Very Basics
关于java - 从 MenuItem 进行黑莓屏幕导航,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4134277/