Code example for Timer

Methods: cancel

0
	 * Finalizes the solo object. 
	 */   
 
	@Override 
	public void finalize() throws Throwable { 
		activitySyncTimer.cancel();
		try { 
			// Remove the monitor added during startup 
			if (activityMonitor != null) {
				inst.removeMonitor(activityMonitor);
				activityMonitor = null;
			} 
		} catch (Exception ignored) {}
		super.finalize(); 
	} 
 
	/** 
	 * All activites that have been opened are finished. 
	 */ 
 
Connect your IDE to all the code out there  Get Codota for Java