Code example for ScheduledExecutorService

Methods: isShutdownshutdown

	protected void onDestroy(){ 
		if (!scheduleTaskExecutor.isShutdown()){
	private String formatTimeInMillis(long l_TimeInMillis){
		//FIXME: Seconds give strange meassures (like more than 60 seconds) 
		l_TimeInMillis = l_TimeInMillis / 1000; //to seconds
		long lHours = l_TimeInMillis/3600;
		l_TimeInMillis -= lHours*3600;
		long lMinutes = l_TimeInMillis/60;
		l_TimeInMillis -= lMinutes*60;
		long lSeconds = l_TimeInMillis;
Connect your IDE to all the code out there  Get Codota for Java