title: Can't find onClick method
body: <p>So, I'm getting this error</p>
  
  <pre><code>11-15 16:55:40.617: E/AndroidRuntime(316): java.lang.IllegalStateException: Could not find a method ingresarBtnClick(View) in the activity class android.view.ContextThemeWrapper for onClick handler on view class android.widget.Button with id 'ingresarButton'
  </code></pre>
  
  <p>This is my layout xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" android:orientation="vertical" android:weightSum="1" android:id="@+id/Login"&gt;
      &lt;TextView android:layout_width="wrap_content" android:id="@+id/textView1" android:textAppearance="?android:attr/textAppearanceLarge" android:text="Número de Lecturista" android:layout_height="wrap_content"&gt;&lt;/TextView&gt;
      &lt;EditText android:inputType="number" android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/numLecEditText" android:maxLength="4"&gt;
          &lt;requestFocus&gt;&lt;/requestFocus&gt;       
      &lt;/EditText&gt;
      &lt;TextView android:layout_width="wrap_content" android:id="@+id/textView2" android:textAppearance="?android:attr/textAppearanceLarge" android:layout_height="wrap_content" android:text="PIN"&gt;&lt;/TextView&gt;
      &lt;EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="number" android:password="true" android:id="@+id/pinEditText" android:maxLength="4"&gt;&lt;/EditText&gt;
      &lt;TableRow android:id="@+id/tableRow1" android:layout_width="match_parent" android:layout_height="wrap_content"&gt;
          &lt;Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Ingresar" android:id="@+id/ingresarButton" android:onClick="ingresarBtnClick"&gt;&lt;/Button&gt;
          &lt;Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Salir" android:id="@+id/salirButton" android:onClick="salirBtnClick"&gt;&lt;/Button&gt;
          &lt;Button android:id="@+id/opcionesButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Opciones" android:onClick="opcionesBtnClick" &gt;&lt;/Button&gt;
      &lt;/TableRow&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And this is my code</p>
  
  <pre><code>import android.app.Dialog;
  import android.view.View;
  import android.widget.EditText;
  
  public class FormaLogin extends Dialog
  {
      SisLec sisLec;
  
      public FormaLogin(SisLec _sisLec)
      {       
          super(_sisLec);     
          sisLec = _sisLec;       
          setTitle("Identificación de Lecturista");
      }
  
      public void mostrar()
      {
          setContentView(R.layout.login);
          show();
      }
  
      public void ingresarBtnClick(View view)
      {
          EditText numLecTxt = (EditText) sisLec.findViewById(R.id.numLecEditText);
          EditText pinTxt = (EditText) sisLec.findViewById(R.id.pinEditText);
  
          if(numLecTxt.getText().length() &gt; 0)
          {
              if(pinTxt.getText().length() &gt; 0)
              {
                  if(numLecTxt.getText().equals("1337"))
                  {
                      if(pinTxt.getText().equals("8383"))
                      {
                          //sisLec.frmMantenimiento.mostrar();
                      }
                  }
                  else
                  {
                      HiloIdentificacion hiloIden = new HiloIdentificacion();
                      hiloIden.identificacion(numLecTxt.getText().toString(), pinTxt.getText().toString());
                  }
              }
              else
                  sisLec.mensaje("Debe de ingresar su pin");
          }
          else
              sisLec.mensaje("Debe de ingresar su número de Lecturista");
      }
  
      public void salirBtnClick(View view)
      {
          sisLec.salir();
      }
  
      public void opcionesBtnClick(View view)
      {
          // TODO: Agregar método que muestre la forma de Opciones
      }
  
      private class HiloIdentificacion extends Thread
      {
          private String usuario, pass;
  
          public synchronized void run()
          {
              try
              {
                  sisLec.identificacion(usuario, pass);
              }
              catch(Exception e)
              {
                  // TODO: Agregar registro de error
              }                   
          }
  
          public synchronized void identificacion(String _usuario, String _pass)
          {
              usuario = _usuario;
              pass = _pass;
              run();
          }
      }
  }
  </code></pre>
  
  <p>The method assigned to the button "ingresarButton", "ingresarBtnClick(View view)" is there, as the Androir documentation suggest <a href="http://developer.android.com/guide/topics/ui/ui-events.html" rel="nofollow">http://developer.android.com/guide/topics/ui/ui-events.html</a> but sill I'm getting the error.</p>
  
  <p>Does it has anything to do that i'm showing this layout on a Dialog?</p>
  
  <p>SisLec is my Activity class</p>