开发者

PopupScreen not show after pushing

开发者 https://www.devze.com 2023-04-10 19:25 出处:网络
I push the pop screen using following code, what pop screen not displays. Please tell me what I missed.?

I push the pop screen using following code, what pop screen not displays. Please tell me what I missed.?

LabelField statusMsg =  new LabelField("Hello");
PopupScreen statusScree开发者_JAVA技巧n = new PopupScreen((fieldHFM));
UiApplication app = UiApplication.getUiApplication();
app.pushScreen(statusScreen);


Try to do in following way

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号