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: 55
Registered: ‎07-21-2009
My Device: Bold 9700 - 6.0 Bundle 1202 (v6.0.0.344, Platform 6.6.0.50)
My Carrier: Orange UK

Re: Passing data between threads. locationProvider update to socket connection thread

So .....

 

'Would you recommend using a Collection with the CollectionListener and the method;

 

elementAdded

 

When the locationUpdated method is called I could add the data to the Collection Object etc .....?"

 

 

"It's all about quality (of posts) not quantity"
Developer
Posts: 55
Registered: ‎07-21-2009
My Device: Bold 9700 - 6.0 Bundle 1202 (v6.0.0.344, Platform 6.6.0.50)
My Carrier: Orange UK

Re: Passing data between threads. locationProvider update to socket connection thread

[ Edited ]

Simon,

 

You intimated that you have developed a Vector/Collection Listener;

 

if you want a single listener:

 

public void setActiveProfileChangeListener(ActiveProfileChangeListener activeProfileChangeListener) {
this.activeProfileChangeListener=activeProfileChangeListener;
}

 

...

if (activeProfileChangeListener != null){
activeProfileChangeListener.activeProfileChanged(location);
}

 

any chance of sharing the code with the board, as per my other post I'm stuck on this and need a more verbose example.

 

Thank you.

 

"It's all about quality (of posts) not quantity"