title: Constructor refers to missing type context
body: <p>I have written a class with the following constructor</p>
  
  <pre><code>public CustomDialog(Context context)
  </code></pre>
  
  <p>But when I try to do this in my activity</p>
  
  <pre><code>CustomDialog diag = new CustomDialog(getApplicationContext()){/*stuff here*/};
  </code></pre>
  
  <p>I get the error <code>The constructor CustomDialog(Context) refers to the missing type Context</code></p>
  
  <p>What does this mean? And how do I fix it?</p>