推送后PopupScreen不显示

时间:2011-10-03 06:09:00

标签: blackberry

我使用以下代码按下弹出屏幕,不显示弹出屏幕。 请告诉我我错过了什么。?

LabelField statusMsg =  new LabelField("Hello");
PopupScreen statusScreen = new PopupScreen((fieldHFM));
UiApplication app = UiApplication.getUiApplication();
app.pushScreen(statusScreen);

1 个答案:

答案 0 :(得分:2)

尝试  以下列方式做事

UiApplication.getUiApplication().invokeLater(new Runnable() {
                    public void run() {
                        UiApplication.getUiApplication().pushScreen(statusScreen);
                    }
                });