Design question regarding multiple GUI component refresh scenario
<p>Here is my scenario: I have to write an android application which displays two tickers on one screen(e.g news ticker and stock ticker). Data for both the tickers come from separate URL's. I'm trying to come up with a efficient solution. So here is my approach so far <br></p>

<p>Create separate class to fetch data from URL's(news and ticker). These classes should be completely responsible for fetching the data from server as well as updating the data on the UI component which is defined in the Activity.<BR></p>

<p>So i guess, each of the class should have 2 private inner class (threads) one to fetch data from server and another to update the GUI. Once the fetch thread gets all the data, the display thread will start to paint it on the GUI component.</p>

<p>My question is <br></p>

<ol>
<li><p>Is this a correct approach? I think this might work, but i'm trying to find if there is a 
better way to do things, like using AsyncTask etc. need some expert advise here. </p></li>
<li><p>I do not want to pass the reference of GUI components(textView) from Activity to Thread 
class (trying to decouple), so I was thinking of passing instance of handler from<br>
Activity to these classes. That way the inner thread class can post a message in handler 
and then in Activity i can get the message from handler to update the GUI component. Is 
it ok to pass the reference of handler to thread. Is this how it is supposed to be done?</p></li>
</ol>

<p>I'm completely ok with changing the above approach if there is a better way, so please let me know how would you tackle this problem. </p>

<p>Thanks</p>
