BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-10-2009, 03:11 AM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Model: 8320
PIN: N/A
Carrier: china mobile
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Scscreen.onDisplay(), and Screen.afterDisplay()?

Please Login to Remove!

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

Code:
onDisplay

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!
Offline  
Old 03-10-2009, 09:44 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

onExposed()?
Offline  
Old 03-10-2009, 07:53 PM   #3 (permalink)
New Member
 
Join Date: Feb 2009
Model: 8320
PIN: N/A
Carrier: china mobile
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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:

Code:
protected void onDisplay() {
		super.onDisplay();
		getApplication().invokeLater(new Runnable() {

			public void run() {
				Dialog.alert("on dispaly method called!");
				
			}
			
		});
	}
looks like, after the screen displayed , the alert is showing.
Offline  
Old 03-15-2009, 06:49 PM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Nov 2008
Location: Sioux Falls, SD
Model: 9530
PIN: N/A
Carrier: Verizon Wireless
Posts: 65
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Depending on which version you're using, try onUiEngineAttached.
__________________
Handspring >> Palm >> BB Pearl >> BB Storm

Tumblog: http://www.geekkink.com
Blog: http://www.zechariahs.org/blog
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Ferraz Shawmut A50qs300-4 Semiconductor A50p500-4 Siemens 3ne1813-0 Fuse
$68.0
Ferraz Shawmut A50qs300-4 Semiconductor A50p500-4 Siemens 3ne1813-0 Fuse pictureBuss Semiconductor Fuse FWH-1000 1000A 500V, FWH1000
$167.4
Buss Semiconductor Fuse FWH-1000 1000A 500V, FWH1000 pictureEdison Semiconductor Fuse, 400 Amp, 500 Volt ac/dc, E50S400, NIB
$35.0
Edison Semiconductor Fuse, 400 Amp, 500 Volt ac/dc, E50S400, NIB picture56 PCS VISHAY SEMICONDUCTOR RWR81S15R4FS RESISTORS
$3.99
56 PCS VISHAY SEMICONDUCTOR RWR81S15R4FS  RESISTORS picture70 PCS VISHAY SEMICONDUCTOR GBPC3504-E4/51 RESISTORS
$3.99
70 PCS VISHAY SEMICONDUCTOR GBPC3504-E4/51  RESISTORS picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.