Handling received message in running thread
<p>I have Threads that listens to incoming HTTP messages , i want to enable other developer that use my code to be able to use the messages that i received in any time. I saw in some mobile OS you can implement class and override onRecive function to receive the messages .</p>

<p>is this the right architecture to use in this case? if yes how could i implemented and if its not what is the best way to do it. </p>
