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: 406
Registered: ‎06-22-2010
My Device: na
My Carrier: blackberry developer

How to run two threads after certain interval of time

I have a TmerTask where i am sending two vectors which changes the LabelField at two differect section in the screen.Each vector has got 3 elements and time interval i have passed is 3 seconds.The problem i am facing i that,for the first interval it is picking the 1st element of the 2nd vector and displays the same text in both the section.For the second interval it picks the 1st element of the 1nd vector and display the same text in both the section.And in this way it keeps going.I want that each section should element from there own vectors and not the same.Can anyone help me?

Developer
Posts: 16,637
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to run two threads after certain interval of time

[ Edited ]

not without a look at your code.
note that a timertask is not a separate thread and should process quickly.

 

edit: and a single thread for one issue should be enough

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter