title: Android - How to set a named method in button.setOnClickListener()
body: <p>Most samples that I see appear to use an anonymous method in a call like button.setOnClickListener().  Instead, I'd like to pass in a method defined on the Activity class that I'm working in.  What's the Java/Android equivalent of the following event handler wiring in C#?</p>
  
  <pre><code>Button myButton = new Button();
  myButton.Click += this.OnMyButtonClick;
  </code></pre>
  
  <p>Where:</p>
  
  <pre><code>private void OnMyButtonClick(object sender, EventArgs ea)
  {
  }
  </code></pre>
  
  <p>Essentially, I'd like to reuse a non-anonymous method to handle the click event of multiple buttons.</p>