title: android: button onClick(), cant tell if anything is happening
body: <p>My Activity onClick() below doesn't appear to be doing anything (not seeing any string appear), yet I dont get any errors.  What am I missing?  Is there a way to trace the function? </p>
  
  <pre><code>package com.HelloTabWidget2;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.widget.Button;
  import android.widget.TextView;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.Toast;
  
  public class AlbumsActivity extends Activity {
  
      private Button closeButton;
  
   public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          this.setContentView(R.layout.tab1);
          this.closeButton = (Button)this.findViewById(R.id.button);
          this.closeButton.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
             Toast.makeText(AlbumsActivity.this, "You clicked the button", Toast.LENGTH_SHORT).show();
  
            }
          });
  
  
      }
  }
  </code></pre>
  
  <p>Thanks!</p>