Android date picker example: DatePickerDialog.OnDateSetListener(){} must implement the inherited abstract method onDateSet
<p>I'm going through the Android hello world application examples and have got stuck on the date picker example. I think I have followed the instructions properly but don't understand the following error</p>

<p>DatePickerDialog.OnDateSetListener(){} must implement the inherited abstract method DatePickerDialog.OnDateSetListener.onDateSet</p>

<p>At first I typed it in but have now I have copied the code over from the example:</p>

<pre><code>// the callback received when the user "sets" the date in the dialog
private DatePickerDialog.OnDateSetListener mDateSetListener =
        new DatePickerDialog.OnDateSetListener() {

            public void onDateSet(DatePicker view, int year, 
                                  int monthOfYear, int dayOfMonth) {
                mYear = year;
                mMonth = monthOfYear;
                mDay = dayOfMonth;
                updateDisplay();
            }
        };
</code></pre>

<p>but still get the error.</p>

<p>Sorry for probably newbie type error but I can't figure out what this error is trying to tell me or what I could have done wrong?</p>
