Code example for ToggleButton

Methods: setVisibility

0
		Date date = new Date();
		long now = date.getTime();
		//if(savePopulate.getTime()<=now) savePopulate.updateTimeNotification("false"); 
		 
		if (!savePopulate.getLongitude().contains("long") || savePopulate.getTime()!=0) {
			showAlarmInfo.setVisibility(View.VISIBLE);
 
			if (savePopulate.getPositionReminder().contains("true"))
				setPositionInfo(true, savePopulate.getSnippet());
			else 
				setPositionInfo(false, savePopulate.getSnippet());
			 
//			Log.i("cake-test. ", "time is: " + savePopulate.getTime()); 
			 
			if(savePopulate.getTime()!=0){
				if(savePopulate.getTimeReminder().contains("true")) 
					setTimeInfo(true, savePopulate.getTime());
				else setTimeInfo(false, savePopulate.getTime());
			} 
			 
		}