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