title: Android cannot find method from button's onClick in ListView Row
body: <p>I have a ListView populated from a custom adapter. Each row has 1 button in it. In the xml the button has the onClick attribute passed. I have only the xml, not any OnClickListeners set. Also note that the public void myMethod (View v) exists in my CustomActivity. I get the following exception</p>
  
  <pre><code>10-02 03:01:46.463: E/AndroidRuntime(26857): java.lang.IllegalStateException: Could not find a method myClickHandler(View) in the activity class **android.app.Application** for onClick handler on view class android.widget.Button with id 'myButton'
  </code></pre>
  
  <p>Method in Activity:</p>
  
  <pre><code>public void myClickHandler(View v) {
      ... do stuff here...
  }
  </code></pre>
  
  <p>Button XML:</p>
  
  <pre><code>        &lt;Button 
              android:id="@+id/myButton"
              android:layout_width="44dp"
              android:layout_height="44dp"
              android:background="@drawable/eye_icon"
              android:onClick="myClickHandler"
              /&gt;
  </code></pre>
  
  <p>One Interesting note in the Exception is that the app tries to find the method in <strong>android.app.Application</strong>  and not in my custom Activity.</p>
  
  <p>Any suggestions?</p>