Code example for Format

Methods: format

0
			sizeUnits = "B";
		} 
		 
		overheadUp.setText("Overhead: " + size + " " + sizeUnits);
		 
		cpuUsage.setText("CPU: " + usageFormat.format(readUsage()));
		 
		consoleText.setText(btStats.getConsoleText());
		updateHandler.removeCallbacks(updater);
		updateHandler.postDelayed(updater, 5000);
	} 
 
	@Override 
	public void onClick(View v) {
		if (v == scrollStart){
			scroller.fullScroll(ScrollView.FOCUS_UP);
		} 
		else if (v == scrollEnd){
			scroller.fullScroll(ScrollView.FOCUS_DOWN);
		} 
	}