BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-20-2009, 05:01 AM   #1
sams11
New Member
 
Join Date: Mar 2009
Model: 8100
PIN: N/A
Carrier: java
Posts: 1
Default Calling UI from Library

Please Login to Remove!

Hi All,

I am new to blackberry,i wanted to know how is it possible to call a UI function from library ?

Thankx,
Offline  
Old 03-20-2009, 08:27 AM   #2
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default

You certainly can. You must make sure any calls you make are from the UiApplication event thread.
Offline  
Old 03-22-2009, 01:01 PM   #3
zechariahs
Thumbs Must Hurt
 
Join Date: Nov 2008
Location: Sioux Falls, SD
Model: 9530
PIN: N/A
Carrier: Verizon Wireless
Posts: 65
Default

Handy piece of code:

Code:
synchronized(Application.getEventLock()) 
{
	// Put UI update code here
}
It's also useful to read the Javadoc for the method: Application.getEventLock().
__________________
Handspring >> Palm >> BB Pearl >> BB Storm

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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc picture

Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc

$22.00



Vintage MOS 6510CBM 6510 HMOS Commodore C64 IC x 1pc picture

Vintage MOS 6510CBM 6510 HMOS Commodore C64 IC x 1pc

$30.00



MOS 8566R3 VIC-II E PAL-B C128 Commodore 64 Vintage IC x 1pc picture

MOS 8566R3 VIC-II E PAL-B C128 Commodore 64 Vintage IC x 1pc

$55.00



To Suit Holden Commodore 3 Button Car Remote Case/Shell Uncut Key VS VX VY VZ WH picture

To Suit Holden Commodore 3 Button Car Remote Case/Shell Uncut Key VS VX VY VZ WH

$11.99



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00







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