DialogInterface.OnShowListener() cannot be resolved to a type
<p>I'm remotely collaborating with a friend on an Android project and when I pulled his changes to my local repo, I get the following error message for a call made on an AlertDialog object:</p>

<pre><code>DialogInterface.OnShowListener() cannot be resolved to a type
</code></pre>

<p>Here's the full code:</p>

<pre><code>import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.text.InputType;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.EditText;
import android.widget.TextView;
...
...
protected AlertDialog mDialogForgotPassword;
...
...
mDialogForgotPassword = new AlertDialog.Builder(LogInActivity.this)
.setTitle(getString(R.string.forgot_password))
.setView(input)
.setCancelable(false)
.setPositiveButton("Submit", new DialogInterface.OnClickListener() {
    public void onClick(DialogInterface dialog, int whichButton) {
        // NOTE: LEAVE THIS AS EMPTY
        // WE OVERRIDEN THIS METHOD USING THE setOnShowListener
    }

})
.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
    public void onClick(DialogInterface dialog, int whichButton) {
        dialog.cancel();
    }
})
.create(); // created AlertDialog

// ERROR APPEARS NEXT, red line under "new DialogInterface.OnShowListener()"
mDialogForgotPassword.setOnShowListener(new DialogInterface.OnShowListener() {
    @Override
    public void onShow(DialogInterface dialog) {
        final Button positiveButton = mDialogForgotPassword.getButton(AlertDialog.BUTTON_POSITIVE);
        positiveButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                final String EMAIL = input.getText().toString();
                if( ValidationHelper.isEmail(EMAIL) ){
                    resetUserPassword(EMAIL);
                }
            }
        });
    }
}); // end setOnShowListener
mDialogForgotPassword.show();
</code></pre>

<p>The friend says that when he presses <code>Ctrl</code> + <code>Space</code> in Eclipse after typing <code>mDialogForgotPassword</code>, the method <code>setOnShowListener()</code> appears as a suggestion. To me, however, it does not, but the import statements seem to be complete. Help?</p>
