Good day,
...first post.
I am learning android coding after not programming for a while(I
once...long ago...coded in c+ making DOS graphical apps, I script for
MS Server support, but I don't count that) and I have a question about
my IDE setup:
I work on a Vista32 laptop with:
Current Android SDK (r3)
Eclipse Java EE IDE for Web Developers, Build id: 20090920-1017 (3.5
sr1)
JDK1.6.0_17

I tried the TimeSetter lesson and could not compile until I changed
"public void onTimeSet()" call from:

        // the callback received when the user "sets" the time in the dialog
        private TimePickerDialog.OnTimeSetListener mTimeSetListener =
            new TimePickerDialog.OnTimeSetListener()
        {
                public void onTimeSet(TimePicker view, int hourOfDay, int
minute)
                {
                    mHour = hourOfDay;
                    mMinute = minute;
                    updateDisplay();
                }

         };

to:

        // the callback received when the user "sets" the time in the dialog
        private TimePickerDialog.OnTimeSetListener mTimeSetListener =
            new TimePickerDialog.OnTimeSetListener()
        {
                public void onTimeSet(android.widget.TimePicker view, int
hourOfDay, int minute)
                {
                    mHour = hourOfDay;
                    mMinute = minute;
                    updateDisplay();
                }

         };

I got this error message:
"The type new TimePickerDialog.OnTimeSetListener(){} must implement
the inherited abstract method
TimePickerDialog.OnTimeSetListener.onTimeSet(TimePicker, int, int)"

Once I specified "android.widgit.Time.Picker()", the function was
resolved and no more errors.

Do I have something missing from my path or in my Eclipse setup, or is
this an error in the lesson or am I just plain missing something?

This is my the last section of my PATH:
...;C:\Program Files\Java\jdk1.6.0_17\bin;C:\Program Files\android-sdk-
windows\tools

Thanks,
Michael

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to