Code example for TimePicker

Methods: setVisibility

0
					configTimePicker.setVisibility(View.GONE); 
					configTimeEditText.setVisibility(View.GONE); 
					break; 
				case TYPE_CLOCK: 
					configTimeEditText.setVisibility(View.GONE); 
					configTimePicker.setVisibility(View.VISIBLE); 
					break; 
				 
			} 
		} 
 
		public void onNothingSelected(AdapterView<?> parent) { } 
	}; 
	 
	private void setTimerAlarm(long endTime)
	{ 
		// Create the alarm 
		SilentAlarmTime silentAlarmTime = new SilentAlarmTime();
		silentAlarmTime.setupTimer(SilentTimerConfig.this, endTime, mAppWidgetId);
		silentAlarmTime.createTimer();