Code example for TimePickerDialog

Methods: setTitle, show

0
    } 
     
     
    public void addSound(View v) {
    	timePickDialog = new customTitleTimePickerDialog(this, new TimePickHandler(), 0, 0);
    	timePickDialog.setTitle("Alarm at time:");
    	timePickDialog.show(); 	
    } 
     
     
    private class TimePickHandler implements OnTimeSetListener {
 
        public void onTimeSet(TimePicker view, int minute, int second) {
        	String result;
        	if (minute < 10)
        		result = "0" + Integer.toString(minute) + ":";
        	else 
        		result = Integer.toString(minute) + ":";
        	if (second < 10)
        		result = result + "0" + Integer.toString(second);
        	else