Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 1

DatePicker.OnDateChangedListener

public static interface DatePicker.OnDateChangedListener

android.widget.DatePicker.OnDateChangedListener


The callback used to indicate the user changed the date.

Summary

Public methods

abstract void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth)

Called upon a date change.

Public methods

onDateChanged

added in API level 1
public abstract void onDateChanged (DatePicker view, 
                int year, 
                int monthOfYear, 
                int dayOfMonth)

Called upon a date change.

Parameters
view DatePicker: The view associated with this listener.

year int: The year that was set.

monthOfYear int: The month that was set (0-11) for compatibility with Calendar.

dayOfMonth int: The day of the month that was set.