BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Thread issue............... (http://www.blackberryforums.com/developer-forum/215712-thread-issue.html)

shreeram 01-05-2010 07:50 AM

Thread issue...............
 
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?

vivartpandey 01-05-2010 08:00 AM

if(threadEnd){
fieldChangeNotify(FieldChangeListener.PROGRAMMATIC );
}

shreeram 01-05-2010 08:55 AM

I couldn't get it?

can u explain it in little brief????????

shreeram 01-05-2010 08:57 AM

i mean........


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


if possible with example please...



thanks

Dougsg38p 01-05-2010 10:02 AM

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"


All times are GMT -5. The time now is 08:26 AM.

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