public static < TimeInstantT extends TimeInstant > TimePickerFragment newInstance ( int pickerId , TimeInstantT selectedInstant ) { TimePickerFragment f = new TimePickerFragment ( ) ; Bundle args = new Bundle ( ) ; args . putInt ( ARG_PICKER_ID , pickerId ) ; args . putParcelable ( ARG_SELECTED_INSTANT , selectedInstant ) ; f . setArguments ( args ) ; return f ; }
Create a new time picker