Code example for TimePickerDialog

Methods: setTitleshow

0
    }     
    // 
    private void show_Time(){ 
    	try 
    	{ 
            final TimePickerDialog timePickerDialog = new TimePickerDialog(this,
                    new TimePickerDialog.OnTimeSetListener() {
                        @Override 
                        public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
                        	m_hour  = hourOfDay;
                        	m_minute =minute;
                        	 
                       	  String s_bf = m_String.comConv_ZeroToStr(String.valueOf(m_hour), 2);
             	          s_bf =s_bf + ":" + m_String.comConv_ZeroToStr(String.valueOf(m_minute), 2);
             	          
                          TextView txt1 = (TextView)findViewById(R.id.lbl_fm04_start) ;
                          txt1.setText(s_bf);
                        } 
                    }, m_hour, m_minute, true);
	            timePickerDialog.setTitle("Start Time");
                timePickerDialog.show();    		
    		 
    	}catch(Exception e){
    		m_Util.errorDialog(this, e.getMessage() );
    	} 
    } 
Stop searching for code, let great code find you!  Add Codota to your java IDE