Code example for TimerTask

Methods: cancel

0
	 
	public synchronized void hide() { 
 
		 
		if (mTimerTask != null) {
			mTimerTask.cancel();
			mTimerTask = null;
		} 
		SurespotLog.v(TAG, "hide");
 
		if (mSingleProgressDialog.isShowing()) {
			try { 
				mSingleProgressDialog.dismiss();
			} 
			catch (Exception e) {
				SurespotLog.w(TAG, e, "hide");
			} 
		} 
 
	}