BlackBerry Forums Support Community

BlackBerry Forums Support Community (
-   Developer Forum (
-   -   Scscreen.onDisplay(), and Screen.afterDisplay()? (

icess 03-10-2009 03:11 AM

Scscreen.onDisplay(), and Screen.afterDisplay()?
In blackBerry Screen class ,there is a method onDisplay() to do something before showing the screen .



protected void onDisplay()

    Invoked when this screen is pushed onto the display stack.

now i want do something after a screen has been painted. just like afterDisplay() or afterPaint().

there is a way to do this? any help? thanks!

hippocamp software 03-10-2009 09:44 AM


icess 03-10-2009 07:53 PM

only after onObscured() method called(some screen, dialog or open the menu will cause this method be called), the onExposed() method has being called.

right now I use this:


protected void onDisplay() {
                getApplication().invokeLater(new Runnable() {

                        public void run() {
                                Dialog.alert("on dispaly method called!");

looks like, after the screen displayed , the alert is showing.

zechariahs 03-15-2009 06:49 PM

Depending on which version you're using, try onUiEngineAttached.

All times are GMT -5. The time now is 04:02 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.