我在blackberry的下面的代码中得到了ClassCastException

时间:2013-06-12 14:16:31

标签: blackberry

UiApplication.getUiApplication().invokeLater(new Runnable() {   
     public void run() {
        Screen screen = UiApplication.getUiApplication().getActiveScreen();
        System.out.println("Screen == "+screen);    
        if (screen instanceof PushNotificationsScreen) {
            System.out.println("Push Notification Screen");    
            PushNotificationsScreen pns = (PushNotificationsScreen) screen; 
            pns.update();    
        }   
    }   
});

0 个答案:

没有答案