Accessing the reference of a child class from an abstract parent
<p>I have an abstract class. It contains a private class field. In one of the methods in the private class field, I need to refer to <code>this</code> of whatever child class extends the abstract class.</p>

<pre><code>public abstract class ActivityCrazy extends Activity {
 private class FoolClickedButton implements OnClickListener {
  public void onClick(View v) {
   startActivity(
    new Intent(
     IMPLEMENTER_OF_ABSTRACT_CLASS.this,
     AnotherClass.class
   )
  }
 }
}
</code></pre>

<p>How do I properly do this? </p>

<p>Before ActivityCrazy was not an abstract class, so I could use <code>ActivitySpecific.this</code>. But now I realized that many classes need the same private FoolClickedButton, so I created this abstract class. The problem is that FoolClickedButton's onClick method must refer to itself.</p>
