Code example for ProgressBar

Methods: getProgressincrementProgressBy

0
				System.out.println("ACCEL: ora è = "+speedometer.getProgress()+"arrivato = "+msg.what+" incremento di = "+Math.abs(msg.what-speedometer.getProgress())); 
				speedometer.incrementProgressBy(Math.abs(msg.what-speedometer.getProgress())); 
				oldValue = msg.what; 
			} 
			else if(msg.what < oldValue){ 
				System.out.println("DECEL: ora è = "+speedometer.getProgress()+"arrivato = "+msg.what+" decremento di = "+Math.abs(msg.what-speedometer.getProgress())); 
				speedometer.incrementProgressBy(-(Math.abs(msg.what-speedometer.getProgress()))); 
				oldValue = msg.what; 
			} 
//			else if(msg.what == 0){ 
//				for(int i = speedometer.getProgress(); i >= 0; --i){ 
//					 
//						speedometer.incrementProgressBy(i-5); 
//				} 
//			} 
		} 
	}; 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);