AlertDialog dans onClickListener

Je suis en train de commencer un AlertDialog à partir d'un onClickListener mais j'obtiens l'erreur suivante.

The constructor AlertDialog.Builder(new View.OnClickListener(){}) is undefined  

Personne ne sait comment résoudre ce problème?

        mRecordButton.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            new AlertDialog.Builder( this )
            .setTitle( "Cast Recording" )
            .setMessage( "Now recording your message" )
            .setPositiveButton( "Save", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int which) {
                    Log.d( "AlertDialog", "Positive" );
                }
            })
            .setNegativeButton( "Cancel", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int which) {
                    Log.d( "AlertDialog", "Negative" );
                }
            } )
            .show();
        }
    });

source d'informationauteur Carnivoris