Code example for SeekBar

Methods: getTag

0
	} 
 
	private class SeekBarChangeListener implements OnSeekBarChangeListener {
 
		public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
			byte portByte = (Byte) seekBar.getTag();
			try { 
				server.send(new byte[] { portByte, (byte) progress });
			} catch (IOException e) {
				Log.e("microbridge", "problem sending TCP message", e);
			} 
		} 
 
		public void onStartTrackingTouch(SeekBar seekBar) {
		} 
 
		public void onStopTrackingTouch(SeekBar seekBar) {
		} 
	} 
 
}