BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 01-05-2010, 07:50 AM   #1 (permalink)
New Member
 
Join Date: Dec 2009
Model: 8130
PIN: N/A
Carrier: just start..........
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Thread issue...............

Please Login to Remove!

Hi,


I developed application, in which the actual work done in background using thread.

till the completion of thread i have stopped other process with my message...

Now i want to indicate message as soon as thread is completed.....


how to do it?
Offline  
Old 01-05-2010, 08:00 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 9000
Carrier: Airtel
Posts: 81
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

if(threadEnd){
fieldChangeNotify(FieldChangeListener.PROGRAMMATIC );
}
__________________
blog.vimviv.com
Offline  
Old 01-05-2010, 08:55 AM   #3 (permalink)
New Member
 
Join Date: Dec 2009
Model: 8130
PIN: N/A
Carrier: just start..........
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I couldn't get it?

can u explain it in little brief????????
Offline  
Old 01-05-2010, 08:57 AM   #4 (permalink)
New Member
 
Join Date: Dec 2009
Model: 8130
PIN: N/A
Carrier: just start..........
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i mean........


how to use it & other things ......


if possible with example please...



thanks
Offline  
Old 01-05-2010, 10:02 AM   #5 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

This is generally done using Observer, or something like it.

You'll have to invent your own Observer/Observed, it is not in the RIM API's.

Or you can do something slimple like a callback.


Google for "Observer Pattern"
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

KEYSTONE HPS-400A-Q-KIT BALLAST KIT *NEW IN BOX*
$70.0
KEYSTONE HPS-400A-Q-KIT BALLAST KIT *NEW IN BOX* pictureB432IUNVHP-A 010C Universal Ballast 120 To 277V 4 F32T8 Box Of 10
$75.0
B432IUNVHP-A 010C Universal Ballast 120 To 277V 4 F32T8 Box Of 10 picturePhilips Advance 70 to 72 Watts, 1 or 2 Lamps, Electronic Ballast, ICN-2S40-N
$8.0
Philips Advance 70 to 72 Watts, 1 or 2 Lamps, Electronic Ballast, ICN-2S40-N pictureInter-Global Type 1 Outdoor Class P Electronic Ballast #IG226-32ELSX1104Y6
$0.99
Inter-Global Type 1 Outdoor Class P Electronic Ballast #IG226-32ELSX1104Y6  pictureDamar EL240-120/27 HF Rapid Start Ballast Item# 3626B
$10.0
Damar EL240-120/27 HF Rapid Start Ballast Item# 3626B picture






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