Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 64
Registered: ‎08-07-2008
My Device: Not Specified

communication between threads

What could be the best way for cummunication between threads.

For example, The main thread is managing the UI engine. A field called ABC is added to MainScreen by main thread. Then later, I create a timer thread, which periodically reads data from a file and update the Text of the field ABC created by main thread.

 

Should I use event and listener ? if so, is there a good example to learn how to use it?

 

or any other solutions to this problem?

BlackBerry Development Advisor
Posts: 14,967
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: communication between threads

Please have a look at this post:  http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=949&query.id=1159...
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker