Code example for Timer

Methods: scheduleAtFixedRate

0
				+ "logBT = " + logBT + "\n"
				+ "logAcc = " + logAcc + "\n"
				+ "logGeo = " + logGeo
		); 
		 
		timer = new Timer();
    	handler = new Handler();
    	 
    	if(logBT) startBT();
    	if(logAcc) startAcc();
    	if(logGeo) startGeo();
    	 
    	timer.scheduleAtFixedRate(new TimerTask() {
			@Override 
			public void run() { 
				handler.post(new Runnable() {
					public void run() { 
						if(logGeo) {
							loc = updateLocation();
						}