开发者

MainScreen not pop after calling popScreen()

开发者 https://www.devze.com 2023-04-11 03:58 出处:网络
I try to pop the main screen using UiApplication.getUiApplication().popScreen(getScreen开发者_开发技巧());

I try to pop the main screen using UiApplication.getUiApplication().popScreen(getScreen开发者_开发技巧());

But after executing this line main screen not poped and my application hanged. And I received the following message from console.

FocusHistory: Focus lost; App AppName; Component net.rim.device.api.ui.component.ButtonField


try to use

UiApplication.getUiApplication.popScreen((UiApplication.getUiApplication().getA‌​ctiveScreen())


UiApplication.getUiApplication().popScreen(this);

        Or

UiApplication.getUiApplication().popScreen(UiApplication.getUiApplication().getActiveScreen());

0

精彩评论

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

关注公众号