title: android TextView setText not working
body: <p>I know there are a lot of similar threads but I've gone through them and still can't figure out the problem.  My program reaches the Handler but it always returns the catch exception "Message isn't handled."</p>
  
  <p>I declared the TextView <code>private TextView chatbox;</code></p>
  
  <p>Under onCreate I have:</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          setUpViews();
          setUpListener();
      }
  </code></pre>
  
  <p>where setUpViews() snippet looks like:</p>
  
  <pre><code> private void setUpViews() {
      chatbox = (TextView) findViewById(R.id.chatbox);
      }
  </code></pre>
  
  <p>Handler:</p>
  
  <pre><code>public Handler mHandler = new Handler(Looper.getMainLooper()){
          @Override
          public void handleMessage(Message msg){
              try{
                  chatbox.setText("Got it!");
              }catch(Exception e){
                  Log.i("MYLOG", "Message was not handled.");
              }
  
          }
      };
  </code></pre>
  
  <p>Snippet in main.xml file:</p>
  
  <pre><code>&lt;TextView
          android:id="@+id/chatbox"
          android:layout_width="200dp"
          android:layout_height="200dp"
          android:layout_centerHorizontal="true"
          android:layout_centerVertical="true"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  </code></pre>