Code example for ScheduledExecutorService

Methods: isShutdown, shutdown

0
		 
	} 
	 
	@Override 
	protected void onDestroy(){ 
		if (!scheduleTaskExecutor.isShutdown()){
			scheduleTaskExecutor.shutdown();
		} 
		 
	} 
	 
	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;
		 
		String sHours = lHours<10 ? "0"+lHours : Long.toString(lHours);