title: Android Recieve message from long running thread
body: <p>In the example of a long running thread how do I pass a Message (not a runnable) to the UI Thread?</p>
  
  <p>Basically if I do something like:</p>
  
  <pre><code>Looper.getMainLooper().sendMessage(myMessage);
  </code></pre>
  
  <p>How do I receive this message in my main Activity thread as an event?  I know I could directly pass a different handler on Thread creation but if the Activity is destroyed it's gone isn't it?</p>
  
  <p>I know of workarounds like Async Task, Retain Fragment and Singletons but this is for mere understanding.</p>