The code:
final Time today = new Time();
today.setToNow();
OnDateChangedListener dateChangeListener = new OnDateChangedListener() {
public void onDateChanged(DatePicker view, int year, int monthOfYear,
int dayOfMonth) {
android.util.Log.i(TAG, "entered onDateChanged"); //TODO:
}
};
datePickerDataInicio.init(today.year, today.month, today.monthDay, dateChangeListener);
So, whenever I change the spinners from the day, month, or year, it seems not to be calling. What I missed?
Thanks!
EDIT!
Sorry guys, it was flaw of attention. I was just calling DatePicker.init() from another point of the code with null listener. Thanks.
Try This code it is working..
call this method onClick of any button or text where