public static < DateInstantT extends DateInstant > DatePickerFragment newInstance ( int pickerId , DateInstantT selectedInstant ) { DatePickerFragment f = new DatePickerFragment ( ) ; Bundle args = new Bundle ( ) ; args . putInt ( ARG_PICKER_ID , pickerId ) ; args . putParcelable ( ARG_SELECTED_INSTANT , selectedInstant ) ; f . setArguments ( args ) ; return f ; }
Create a new date picker