import DialogInterface.OnClickListener
instead of
import View.OnClickListener
EDIT :
your activity line should be:
... extends Activity implements DialogInterface.OnClickListener
5
solved Android – Error says The type new DialogInterface.OnClickListener(){} must implement the inherited