Code example for TimePicker

Methods: setEnabled

0
    	vibrateEnabled.setEnabled(b);
    } 
     
    private void quietTimeSettingsActive(boolean b) {
    	startTime.setEnabled(b);
    	endTime.setEnabled(b);
    } 
     
    @Override 
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
 
        Window w = getWindow();
        w.requestFeature(Window.FEATURE_LEFT_ICON);
        setContentView(R.layout.push_preferences_dialog); 
         
        pushEnabled = (CheckBox) findViewById(R.id.push_enabled);
        soundEnabled = (CheckBox) findViewById(R.id.sound_enabled);
        vibrateEnabled = (CheckBox) findViewById(R.id.vibrate_enabled);
        quietTimeEnabled = (CheckBox) findViewById(R.id.quiet_time_enabled);