Code example for Date

Methods: getTimesetHourssetMinutes

0
                Date d = getDateTime(item);
                OnTimeSetListener onTimeSet = new OnTimeSetListener() {
                    public void onTimeSet(TimePicker view, int hourOfDay,
                            int minute) {
                        Date d = getDateTime(item);
                        d.setHours(hourOfDay);
                        d.setMinutes(minute);
                        item.setValue(d.getTime());
                        updateButtonText.run();
                        afterChange.run();
                    } 
                }; 
                return new TimePickerDialog(getActivity(),
                        onTimeSet, d.getHours(), d.getMinutes(), true);
            } 
        }; 
        launchDialogOnClick(activity, "timePicker", timeButton, timePickerFragment);
 
        // wire up reset button 
        resetButton.setOnClickListener(new OnClickListener(){
Stop searching for code, let great code find you!  Add Codota to your java IDE