Did you remember to enter the code for the updateDisplay method (shown
below)?
// updates the date we display in the TextView
private void updateDisplay() {
mDateDisplay.setText(
new StringBuilder()
// Month is 0 based so add 1
.append(mMonth + 1).append("-")
.append(mDay).append("-")
.append(mYear).append(" "));
}
For the calendar, the package name is java.util.Calendar, but
java.util.* should also work. I'm not sure what's wrong there.
On Jul 16, 11:42 pm, yushun he <[email protected]> wrote:
> hi, i'm doing the datepicker tutorial. I finished putting the codes
> HelloDatePicker.java
> the only thing wrong is the words Calender and updateDisplay are
> underlined red.
> I've spell checked it and the coding is correct(at least thats what i
> see)
> I know it's the import Calender, but clt shift o does not find it. and
> i try typing in
> import java.util.*;
> so.. whats the package name or what else could be wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---