title: Android handler and thread mechanism
body: <p>I am working with threads and handlers on android and I am a beginner on this. </p>
  
  <p>Actually, there is something that is not clear yet for me: does the handler method </p>
  
  <p><code>void handleMessage(Message msg)</code>"</p>
  
  <p>always runs in the UI thread? </p>
  
  <p>In fact, in the offical documentation they said that "</p>
  
  <blockquote>
    <p>Each Handler instance is associated with a single thread and that
    thread's message queue</p>
  </blockquote>
  
  <p>and that's a little bit confusing for me because according to what I understood that means that the handler's handleMessage method runs in the thread that created it. </p>
  
  <p>Help please and thanks in advance</p>