title: NoSuchMethodException for public no argument constructor in Inner Class
body: <p>I defined a public no-argument constructor inside an inner class, and my code keeps throwing a <code>NoSuchMethoException</code> when I call <code>getConstructor()</code>.  </p>
  
  <p>I'm calling the problem method within the outer class using:</p>
  
  <pre><code>addListeners( info_boxes, InfoBoxListener.class.getName() );
  </code></pre>
  
  <p>My inner class:</p>
  
  <pre><code>public class InfoBoxListener implements View.OnClickListener
  {
      public InfoBoxListener()
      {
          //Why isn't this constructor being found?
      }
  
      @Override
      public void onClick(View view) 
      {
          //some code         
      }
  }
  </code></pre>
  
  <p>The method throwing the exception:</p>
  
  <pre><code>private void addListeners( List&lt;View&gt; views, String class_name )
  {   
          try 
          {
              Class&lt;?&gt; clazz = Class.forName( class_name );
  
              Constructor&lt;?&gt; ctor = clazz.getConstructor(); //EXCEPTION
  
              for ( View view : views )
              {
                  Object object = ctor.newInstance();
                  view.setOnClickListener( (View.OnClickListener) object );
              }
  
          } 
          catch (ClassNotFoundException e) 
          {
              Log.i("mine",  "class not found: " + e.getMessage() );
          }
          catch (NoSuchMethodException e) 
          {
              Log.i("mine",  "method not found: " + e.getMessage() );
          }
          catch (Exception e) 
          {
          }
  }
  </code></pre>
  
  <p>My google-fu has failed me.  What in the world am I doing wrong?</p>