title: Android 2.1: Multiple Handlers in a Single Activity
body: <p>I've more than one <code>Handlers</code> in an Activity. I create all the handlers in the <code>onCreate()</code> of the main activity. My understanding is the <code>handleMessage()</code> method of each handler will never be called at the same time because all messages are put in the same queue (the Activity thread MessageQueue). Therefore, they will be executed in the order in which are put into the Queue. They will also be executed in the main activity thread. Is this correct ? </p>
  
  <pre><code> public void onCreate() {
  
  this.handler1 = new Handler() {
  @Override
  public void handleMessage(Message msg) {
  
                              //operation 1 : some operation with instanceVariable1
  super.handleMessage(msg);
  }
  };
  
  this.handler2 = new Handler() {
  
  @Override
  public void handleMessage(Message msg) {
                              //Operation 2: some operation with instanceVariable1
  super.handleMessage(msg);
  }
  
  };
  
  this.handler3 = new Handler() {
  @Override
  public void handleMessage(Message msg) {
                              //Operation 3: some operation with instanceVariable1
  super.handleMessage(msg);
  
  }
  };
  }
  </code></pre>